Class: NLP::RIDCategory
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_level ⇒ Object
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
16
17
18
|
# File 'lib/dictionaries/rid_category.rb', line 16
def emotions?
root == :EMOCJE
end
|
#primary? ⇒ Boolean
8
9
10
|
# File 'lib/dictionaries/rid_category.rb', line 8
def primary?
root == :PIERWOTNE
end
|
#secondary? ⇒ Boolean
12
13
14
|
# File 'lib/dictionaries/rid_category.rb', line 12
def secondary?
root == :WTORNE
end
|