Class: Zenlish::WClasses::WordClass

Inherits:
Rley::Syntax::Terminal
  • Object
show all
Defined in:
lib/zenlish/wclasses/word_class.rb

Overview

Also known as: part of speech, syntactic category or word category. A word class represents a group of word which have similar functions. Word classes are divided into:

  • Lexical words (?? same as content words??) such as nouns, verbs, adjectives, adverbs Content words carry the meaning of a sentence
  • Function words (?? same as structure words??) such as pronouns, determiners, modal verbs, auxiliary verbs, Structure words structure a sentence conjunctions and prepositions

Instance Method Summary collapse

Constructor Details

#initializeWordClass

Returns a new instance of WordClass.



15
16
17
# File 'lib/zenlish/wclasses/word_class.rb', line 15

def initialize
  super(self.class.name.split('::').last)
end