Class: LLT::Stem

Inherits:
Object
  • Object
show all
Includes:
Helpers::Initialize, Helpers::Normalizer, Helpers::Transformer
Defined in:
lib/llt/stem.rb,
lib/llt/stem/pack.rb,
lib/llt/stem/noun_pack.rb,
lib/llt/stem/noun_stem.rb,
lib/llt/stem/verb_pack.rb,
lib/llt/stem/verb_stem.rb,
lib/llt/stem/ethnic_stem.rb,
lib/llt/stem/adjective_pack.rb,
lib/llt/stem/adjective_stem.rb

Direct Known Subclasses

AdjectiveStem, EthnicStem, NounStem, VerbStem

Defined Under Namespace

Classes: AdjectivePack, AdjectiveStem, EthnicStem, NounPack, NounStem, Pack, VerbPack, VerbStem

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, args) ⇒ Stem

Returns a new instance of Stem.



17
18
19
20
# File 'lib/llt/stem.rb', line 17

def initialize(type, args)
  @type = t.send(type, :full)
  extract_normalized_args!(args)
end

Instance Attribute Details

#stemObject (readonly)

Returns the value of attribute stem.



15
16
17
# File 'lib/llt/stem.rb', line 15

def stem
  @stem
end

#typeObject (readonly)

Returns the value of attribute type.



15
16
17
# File 'lib/llt/stem.rb', line 15

def type
  @type
end