Class: NLP::RIDCategory

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

Instance Attribute Summary

Attributes inherited from Category

#name, #parent

Instance Method Summary collapse

Methods inherited from Category

#initialize, #path, #root, #to_s

Constructor Details

This class inherits a constructor from NLP::Category

Instance Method Details

#emotions?Boolean

Returns:

  • (Boolean)


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

def emotions?
  root == :EMOCJE
end

#primary?Boolean

Returns:

  • (Boolean)


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

def primary?
  root == :PIERWOTNE
end

#secondary?Boolean

Returns:

  • (Boolean)


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

def secondary?
  root == :WTORNE
end