Module: Words

Defined in:
lib/words.rb,
lib/synset.rb,
lib/relation.rb,
lib/evocations.rb,
lib/homographs.rb,
lib/wordnet_connectors/pure_wordnet_connection.rb,
lib/wordnet_connectors/tokyo_wordnet_connection.rb

Overview

The Words gem namespace. Within this we offer a number of classes to facilitate useful interaction with words and language. Currently this largly consists of Words::Wordnet which offers simple wordnet access.

Defined Under Namespace

Classes: BadWordnetConnector, BadWordnetDataset, Evocations, Homographs, NoWordnetConnection, PureWordnetConnection, Relation, Synset, TokyoWordnetConnection, Wordnet

Constant Summary collapse

SUPPORTED_CONNECTIORS =

We identify each wordnet connector installed and there paths

Dir[File.join(File.dirname(__FILE__),'wordnet_connectors','*_wordnet_connection.rb')].inject(Hash.new) { |connectors, connection_file| connectors[ File.basename(connection_file).split('_').first.to_sym ] = connection_file; connectors }
DEFAULT_WORDNET_LOCATIONS =

An array of tippical wordnet install locations (if you have a standard install somewhere else please open as an issue in github so we can improve!)

['/usr/share/wordnet/', '/usr/local/share/wordnet/', '/usr/local/WordNet-3.0/', '/opt/WordNet-3.0/', '/opt/wordnet/', '/opt/local/share/WordNet-3.0/', '/usr/local/Cellar/wordnet/3.0/']