The dictionary service provides a JSON API for expanding a tag into set of synonym tag, more general tag and related tags by using English stemming and WordNet. The service can be used in tagging systems to further expand and/or rank search results.
PostgreSQL 9.1+ Erlang R15B03
# initialize the database
make setup
# start the service
script/dictionary console
WordNet data is stored in a separate dictionary-seed repo.
git clone https://github.com/airships/dictionary-seed.git
# In dictionary Erlang console
([email protected])1> tag_analysis_import_wordnet:do("../../../../dictionary-seed/wordnet/Thesaurus/Thesaurus_a-z.csv").
(echo 'copy tags from stdin;' ; cat ../dictionary-seed/db/tags.tsv) | psql -U airship_dict
(echo 'copy synonyms from stdin;' ; cat ../dictionary-seed/db/synonyms.tsv) | psql -U airship_dict
curl -v http://localhost:10001/tags/software%20development