class Lingo::Attendee::Synonymer

Public Instance Methods

control(*) click to toggle source
# File lib/lingo/attendee/synonymer.rb, line 81
def control(*)
end
init() click to toggle source
# File lib/lingo/attendee/synonymer.rb, line 75
def init
  set_dic
  @com = !get_key('compound-parts', false)
  @skip = get_ary('skip', WA_UNKNOWN, :upcase)
end
process(obj) click to toggle source
# File lib/lingo/attendee/synonymer.rb, line 84
def process(obj)
  if obj.is_a?(Word) && !@skip.include?(obj.attr)
    obj.add_lexicals(@dic.find_synonyms(obj, [], @com))
  end

  forward(obj)
end