Thesaurus API
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
Overview
Thesaurus API exposes the OpenOffice English Thesaurus v2 to drupal via a single API method. This project was developed because we needed to improve search functionality of taxonomy terms by also automatically searching for their synonyms. This api can be used for what ever purpose you need.
We are not including any search integration code with this module at this time. It is simply the thesaurus API. You will need to download the OpenOffice thesaurus files yourself from their server or mirror. See requirements section below for url.
Features
A single API function which takes a string (word or phrase) and locates that term in the Thesaurus index file. The function returns an array containing the resulting synonyms.
Requirements
This module includes the php API, but not the actual thesaurus data files. These are available from the OpenOffice.org website (http://openoffice.org.irontec.com/contrib/dictionaries/) or mirrors. The name of the files used to construct this module were thes_en_US_v2.dat and thes_en_US_v2.idx, they are contained in thes_en_US_v2.zip file.
Installation
- Download the OpenOffice thesaurus file (See requirements section)
- Copy the .dat and .idx thesaurus files to the sites/all/libraries/thesaurus_api/ folder. (The module will locate and use any file in this folder named with .idx and .dat extensions.)
- Install this module and enable it using the standard Drupal interface.
Compatibility
This module is only compatible currently with D7. It should be simple to port to D6 as there are very few system calls.
