Sha256: 0241667ac7d4339f4eb3e73ae55beefe048b75e2ae295647a27819961a5873e0
Contents?: true
Size: 1.42 KB
Versions: 3
Compression:
Stored size: 1.42 KB
Contents
require 'rley' require_relative '../feature/feature_struct_def_bearer' 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 for the chosen discourse # universe. # # - Function words (?? same as structure words??) such as pronouns, determiners, # modal verbs, auxiliary verbs. Structure words helpt to structure a sentence. # They working is independent of the chosen discourse universe. # conjunctions and prepositions class WordClass < Rley::Syntax::Terminal include Feature::FeatureStructDefBearer # @return [Hash] pair of the kind: String => InflectionTable attr_reader :paradigms def initialize super(self.class.name.split('::').last) init_struct_def(nil, {}) @paradigms = {} end # Indicates whether all words from the word class have a single (uninflected) # form. # @return [FalseClass, TrueClass] true iff the words in the class are invariable. def invariable? return true end # @return [Module, NilClass] def extension nil end end # class end # module end # module
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zenlish-0.2.04 | lib/zenlish/wclasses/word_class.rb |
zenlish-0.2.03 | lib/zenlish/wclasses/word_class.rb |
zenlish-0.2.02 | lib/zenlish/wclasses/word_class.rb |