Sha256: 25a8933eebd5e81cf2995aed71e391a915e28819a7813d5706dd62c68e5cb2d6
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
require_relative '../../../lib/zenlish/lex/empty_lexicon' require_relative '../../../lib/zenlish/lex/lexical_entry' require_relative '../../../lib/zenlish/lex/lexeme' require_relative '../../../lib/zenlish/lex/lexicon' def add_entry(aLemma, aWordClass) entry = Zenlish::Lex::LexicalEntry.new(aLemma) lexeme = Zenlish::Lex::Lexeme.new(aWordClass, entry) $ZenlishLexicon.add_entry(entry) end common_noun = $ZenlishLexicon.name2terminal['CommonNoun'] adjective = $ZenlishLexicon.name2terminal['Adjective'] proper_noun = $ZenlishLexicon.name2terminal['ProperNoun'] irregular_verb = $ZenlishLexicon.name2terminal['IrregularVerb'] indefinite_pronoun = $ZenlishLexicon.name2terminal['IndefinitePronoun'] demonstrative_determiner = $ZenlishLexicon.name2terminal['DemonstrativeDeterminer'] definite_article = $ZenlishLexicon.name2terminal['DefiniteArticle'] dot = $ZenlishLexicon.name2terminal['Period'] add_entry('Lisa', proper_noun) add_entry('other', adjective) add_entry('see', irregular_verb) add_entry('something', indefinite_pronoun) add_entry('the', definite_article) add_entry('thing', common_noun) add_entry('this', demonstrative_determiner) add_entry('Tony', proper_noun) add_entry('.', dot)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zenlish-0.1.0 | spec/zenlish/support/minimal_lexicon.rb |