Class: Zenlish::WClasses::ProperNoun

Inherits:
Noun
  • Object
show all
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

#paradigms

Instance Method Summary collapse

Methods inherited from Noun

#invariable?

Methods inherited from WordClass

#extension, #invariable?

Methods included from Feature::FeatureStructDefBearer

#[], #boolean, #enumeration, #feature_def, #feature_def_dsl, #identifier, #init_struct_def, #struct

Constructor Details

#initializeProperNoun

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_defsObject



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