Sha256: 059c3ac7f643cd517372df65d0557a89f8e0561de19dfc009846024bd568e4e2

Contents?: true

Size: 760 Bytes

Versions: 25

Compression:

Stored size: 760 Bytes

Contents

require 'rley'

module Zenlish
  module WClasses
    # 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
    class WordClass < Rley::Syntax::Terminal
      def initialize
        super(self.class.name.split('::').last)
      end
    end # class
  end # module    
end # module

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
zenlish-0.1.25 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.24 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.23 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.22 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.21 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.20 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.19 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.18 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.17 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.16 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.15 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.14 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.13 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.12 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.11 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.10 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.09 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.07 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.06 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.05 lib/zenlish/wclasses/word_class.rb