Class: NLP::RIDCategory

Inherits:
Category show all
Defined in:
lib/dictionaries/rid_category.rb

Instance Attribute Summary

Attributes inherited from Category

#name, #parent

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Category

#initialize, #path, #root, #to_s

Constructor Details

This class inherits a constructor from NLP::Category

Class Method Details

.top_levelObject



4
5
6
# File 'lib/dictionaries/rid_category.rb', line 4

def self.top_level
  [new(:PIERWOTNE),new(:WTORNE),new(:EMOCJE)]
end

Instance Method Details

#emotions?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/dictionaries/rid_category.rb', line 16

def emotions?
  root == :EMOCJE
end

#primary?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/dictionaries/rid_category.rb', line 8

def primary?
  root == :PIERWOTNE
end

#secondary?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/dictionaries/rid_category.rb', line 12

def secondary?
  root == :WTORNE
end