Module: Lingo::Language

Included in:
Attendee
Defined in:
lib/lingo/language.rb,
lib/lingo/language/word.rb,
lib/lingo/language/char.rb,
lib/lingo/language/token.rb,
lib/lingo/language/grammar.rb,
lib/lingo/language/lexical.rb,
lib/lingo/language/word_form.rb,
lib/lingo/language/dictionary.rb,
lib/lingo/language/lexical_hash.rb

Defined Under Namespace

Modules: Char Classes: Dictionary, Grammar, Lexical, LexicalHash, Token, Word, WordForm

Constant Summary

CHAR_PUNCT =
'.'.freeze
TA_ABBREVIATION =
'ABRV'.freeze
TA_HELP =
'HELP'.freeze
TA_HTML =
'HTML'.freeze
TA_NUMBER =
'NUMS'.freeze
TA_OTHER =
'OTHR'.freeze
TA_PUNCTUATION =
'PUNC'.freeze
TA_SKIP =
'SKIP'.freeze
TA_SPACE =
'SPAC'.freeze
TA_URL =
'URLS'.freeze
TA_WIKI =
'WIKI'.freeze
TA_WORD =
'WORD'.freeze
WA_UNSET =
'-'.freeze
WA_IDENTIFIED =
'IDF'.freeze
WA_UNKNOWN =
'?'.freeze
WA_COMPOUND =
'COM'.freeze
WA_MULTIWORD =
'MUL'.freeze
WA_SEQUENCE =
'SEQ'.freeze
WA_UNKMULPART =
'MU?'.freeze
LA_SORTORDER =
[
  LA_SEQUENCE   = 'q',
  LA_MULTIWORD  = 'm',
  LA_COMPOUND   = 'k',
  LA_NOUN       = 's',
  LA_VERB       = 'v',
  LA_ADJECTIVE  = 'a',
  LA_NAME       = 'e',
  LA_WORDFORM   = 'w',
  LA_STOPWORD   = 't',
  LA_TAKEITASIS = 'x',
  LA_SYNONYM    = 'y',
  LA_STEM       = 'z',
  LA_UNKNOWN    = '?'
].each_with_index.inject({}) { |h, (i, j)| h[i.freeze] = j; h }