class Zenlish::Lex::LexicalEntry
TODO: document
Attributes
lemma[R]
@return [String] the lemma (dictionary) form of a word.
lexemes[R]
@return [Array<Lexeme, Rley::Syntax::Terminal>]
Public Class Methods
new(theLemma, aLexeme = nil)
click to toggle source
@param theLemma [String] lemma (= citation form), a word form used
conventionnaly to represent a lexeme.
@param aLexeme [Lexeme, NilClass] the lexeme to link with lexical entry.
# File lib/zenlish/lex/lexical_entry.rb, line 16 def initialize(theLemma, aLexeme = nil) @lemma = theLemma.dup @lexemes = [] add_lexeme(aLexeme) end
Public Instance Methods
add_lexeme(aLexeme)
click to toggle source
@param aLexeme [Lexeme, NilClass] the lexeme to link with lexical entry.
# File lib/zenlish/lex/lexical_entry.rb, line 23 def add_lexeme(aLexeme) lexemes << aLexeme if aLexeme end