Module: Meaningable

Included in:
NLP::Emoticon, NLP::Word
Defined in:
lib/tagger/meaningable.rb

Instance Method Summary collapse

Instance Method Details

#bad_word?Boolean

Returns:

  • (Boolean)


49
50
51
# File 'lib/tagger/meaningable.rb', line 49

def bad_word?
  category.path.include? 'WULGAR'
end

#cognitive?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/tagger/meaningable.rb', line 37

def cognitive?
  category.path.include? 'KOGNITYWNE_PROCESY'
end

#emotion?Boolean

second categories

Returns:

  • (Boolean)


25
26
27
# File 'lib/tagger/meaningable.rb', line 25

def emotion?
  category.path.include? 'EMOCJE'
end

#linguistic?Boolean

LIWC primary categories

Returns:

  • (Boolean)


6
7
8
# File 'lib/tagger/meaningable.rb', line 6

def linguistic?
  category.root == :PIERWOTNE
end

#negative_emotion?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/tagger/meaningable.rb', line 33

def negative_emotion?
  category.path.include? 'NEGATYWNE_EMOCJE'
end

#personal?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/tagger/meaningable.rb', line 19

def personal?
  category.root == :OSOBISTE
end

#positive_emotion?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/tagger/meaningable.rb', line 29

def positive_emotion?
  category.path.include? 'POZYTYWNE_EMOCJE'
end

#psychological?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/tagger/meaningable.rb', line 10

def psychological?
  category.root == :PROCESY_PSYCHOLOGICZNE
end

#relative?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/tagger/meaningable.rb', line 15

def relative?
  category.root === :RELATYWNOSC
end

#sense?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/tagger/meaningable.rb', line 41

def sense?
  category.path.include? 'ZMYSLY'
end

#social?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/tagger/meaningable.rb', line 45

def social?
  category.path.include? 'SOCIAL'
end

#synonym?(other) ⇒ Boolean

SEMANTIC

Returns:

  • (Boolean)


55
56
57
# File 'lib/tagger/meaningable.rb', line 55

def synonym?(other)

end

#synonymsObject



59
60
61
# File 'lib/tagger/meaningable.rb', line 59

def synonyms

end