Module: Meaningable
- Included in:
- NLP::Emoticon, NLP::Word
- Defined in:
- lib/tagger/meaningable.rb
Instance Method Summary collapse
- #bad_word? ⇒ Boolean
- #cognitive? ⇒ Boolean
-
#emotion? ⇒ Boolean
second categories.
-
#linguistic? ⇒ Boolean
LIWC primary categories.
- #negative_emotion? ⇒ Boolean
- #personal? ⇒ Boolean
- #positive_emotion? ⇒ Boolean
- #psychological? ⇒ Boolean
- #relative? ⇒ Boolean
- #sense? ⇒ Boolean
- #social? ⇒ Boolean
-
#synonym?(other) ⇒ Boolean
SEMANTIC.
- #synonyms ⇒ Object
Instance Method Details
#bad_word? ⇒ Boolean
49 50 51 |
# File 'lib/tagger/meaningable.rb', line 49 def bad_word? category.path.include? 'WULGAR' end |
#cognitive? ⇒ Boolean
37 38 39 |
# File 'lib/tagger/meaningable.rb', line 37 def cognitive? category.path.include? 'KOGNITYWNE_PROCESY' end |
#emotion? ⇒ Boolean
second categories
25 26 27 |
# File 'lib/tagger/meaningable.rb', line 25 def emotion? category.path.include? 'EMOCJE' end |
#linguistic? ⇒ Boolean
LIWC primary categories
6 7 8 |
# File 'lib/tagger/meaningable.rb', line 6 def linguistic? category.root == :PIERWOTNE end |
#negative_emotion? ⇒ Boolean
33 34 35 |
# File 'lib/tagger/meaningable.rb', line 33 def negative_emotion? category.path.include? 'NEGATYWNE_EMOCJE' end |
#personal? ⇒ Boolean
19 20 21 |
# File 'lib/tagger/meaningable.rb', line 19 def personal? category.root == :OSOBISTE end |
#positive_emotion? ⇒ Boolean
29 30 31 |
# File 'lib/tagger/meaningable.rb', line 29 def positive_emotion? category.path.include? 'POZYTYWNE_EMOCJE' end |
#psychological? ⇒ Boolean
10 11 12 |
# File 'lib/tagger/meaningable.rb', line 10 def psychological? category.root == :PROCESY_PSYCHOLOGICZNE end |
#relative? ⇒ Boolean
15 16 17 |
# File 'lib/tagger/meaningable.rb', line 15 def relative? category.root === :RELATYWNOSC end |
#sense? ⇒ Boolean
41 42 43 |
# File 'lib/tagger/meaningable.rb', line 41 def sense? category.path.include? 'ZMYSLY' end |
#social? ⇒ Boolean
45 46 47 |
# File 'lib/tagger/meaningable.rb', line 45 def category.path.include? 'SOCIAL' end |
#synonym?(other) ⇒ Boolean
SEMANTIC
55 56 57 |
# File 'lib/tagger/meaningable.rb', line 55 def synonym?(other) end |
#synonyms ⇒ Object
59 60 61 |
# File 'lib/tagger/meaningable.rb', line 59 def synonyms end |