资 源 简 介
Moby Thesaurus and Part of Speech Dictionary
A class for parsing the Moby Thesaurus and Moby Part of Speech dictionary.
Features:
Get synonyms for a particular word.
If the exact word is not available, the class uses php_stem and levenshtein distance to get the word that is closest to the given word. This feature requires the PECL php_stem extension to be available on the server.
Get parts of speech for a word. Returns a list of parts of speech for the given word.
Note:
This PHP class uses the The Project Gutenberg Etext of Moby Thesaurus II by Grady Ward and Moby Part-of-Speech II by Grady Ward. These are freely available public domain files from http://www.gutenberg.org/. These files are distributable in the United States. Copyright laws are changing all over the world, be sure to check the laws for your country before redistributing these files.
Demonstrating MobyThesaurus PH