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.04 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.03 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.02 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.01 lib/zenlish/wclasses/word_class.rb
zenlish-0.1.0 lib/zenlish/wclasses/word_class.rb