|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not enough user ratings||Total: 326 ||All time: 7,095 This week: 338|
This package can generate complete thoughts from a verb and a noun.
It takes a verb and an noun and uses the Moby thesaurus file to extract synonyms.
Complete thoughts may be found by looking for any of the verb synonyms in the noun synonyms.
Prize: PHP Tools for Visual Studio Personal license
|Well formed sentences are based on grammatically correct combination of verbs and nouns, thus forming what is called complete thoughts.
This package provides a solution for generating complete thoughts from verbs and nouns.
It also allows verifying if sentences may have been written by bots that generate fake text by checking if the combination of verb and noun words is present in sentences.
PHP Moby NLP
Gets the "complete thought" from a verb and a noun using Moby Thesaurus
What does it do?
It uses the Moby Thesaurus to get the "complete thought" from a verb and a noun.
This is meant for Natural Language Processing (NLP) tasks.
How does it work?
The code looks for "complete thoughts", see the link to Wikipedia here:
First: open the index.php, a form will appear.
Second: enter a verb, like "walk", "talk" or "run". It is best to user the base form or lemma. So do not use "running", but use "run". This program can be used to get the lemma for you:
Third, enter a noun like "dog", "cat", "house" or "car".
Finally, press Submit, wait for the result. The result may take up to 2 seconds.
What can I do with the result?
First, you can use it in spam killers: if there are complete thoughts in a text, the text is probably not fake.
Second: you can use this for creating reports and understanding text.
Third: this could be used as suggestions in search engines.
PHP 5.3 or higher: it also works on PHP 7
Installation using Composer
You can install the adapter by putting the following line into your composer.json and running a composer update
Can I use a different set of words (=thesaurus)?
Yes. This script uses the Moby Thesaurus that is based on the English language from 1996. It doesn't have many modern words. You can change the Thesaurus by using an API.
However, this is not programmed yet. To make it happen, there needs to be an API connection. Also the existing Synonym function needs to be re-written to use this API.
I want to write a script to use the Urban Dictionary API. This would make it talk "urban". Here is an example on how to connect:
Please let me know.
Brent Rossen, orginal author of the MobyThesaurus.php class
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.