Class: Zenlish::WClasses::ProperNoun
- Defined in:
- lib/zenlish/wclasses/proper_noun.rb
Overview
Proper nouns refer to persons, places, geographical features, planets, or various period of time.
Instance Attribute Summary
Attributes inherited from WordClass
Instance Method Summary collapse
- #init_feature_defs ⇒ Object
-
#initialize ⇒ ProperNoun
constructor
A new instance of ProperNoun.
Methods inherited from Noun
Methods inherited from WordClass
Methods included from Feature::FeatureStructDefBearer
#[], #boolean, #enumeration, #feature_def, #feature_def_dsl, #identifier, #init_struct_def, #struct
Constructor Details
#initialize ⇒ ProperNoun
Returns a new instance of ProperNoun.
8 9 10 11 |
# File 'lib/zenlish/wclasses/proper_noun.rb', line 8 def initialize super() init_feature_defs end |
Instance Method Details
#init_feature_defs ⇒ Object
13 14 15 16 17 18 |
# File 'lib/zenlish/wclasses/proper_noun.rb', line 13 def init_feature_defs # Override standard feature definitions for proper nouns. feature_def_dsl { feature_def 'NUMBER' => enumeration(:singular) } end |