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.



10
11
12
13
# File 'lib/zenlish/wclasses/proper_noun.rb', line 10

def initialize
  super()
  init_feature_defs
end

Instance Method Details

#init_feature_defsObject



15
16
17
18
19
20
# File 'lib/zenlish/wclasses/proper_noun.rb', line 15

def init_feature_defs
  # Override standard feature definitions for proper nouns.
  feature_def_dsl do
    feature_def 'NUMBER' => enumeration(:singular)
  end
end