Class: HiwaiKaeuta::Inference

Inherits:
Object
  • Object
show all
Defined in:
lib/hiwai_kaeuta/inference.rb

Defined Under Namespace

Modules: Pattern

Constant Summary collapse

HIWAI_WORDS =
[['マンコ', 'マンコ'],
['チンコ', 'チンコ'],
['アナル', 'アナル'],
['マラ', 'マラ'],
['チツ', '']]

Class Method Summary collapse

Class Method Details

.execute(nodes) ⇒ Object



9
10
11
12
13
# File 'lib/hiwai_kaeuta/inference.rb', line 9

def self.execute(nodes)
  %w(Node No).map { |x|
    Pattern.const_get(x).get_all(nodes).map(&:subst).reject(&:nil?)
  }.flatten
end