Class: SynonymFinder::GroupOrganizer

Inherits:
Object
  • Object
show all
Defined in:
lib/synonym-finder/group_organizer.rb

Instance Method Summary collapse

Constructor Details

#initialize(synonym_finder) ⇒ GroupOrganizer

Returns a new instance of GroupOrganizer.



4
5
6
7
8
# File 'lib/synonym-finder/group_organizer.rb', line 4

def initialize(synonym_finder)
  @synonym_finder = synonym_finder
  @db = @synonym_finder.db
  @groups = {}
end

Instance Method Details

#organizeObject

Finds duplication groups for a name. A name can be one or more duplication groups: chresonym, lexical variant, homotypic, alt placement



11
12
13
14
15
16
# File 'lib/synonym-finder/group_organizer.rb', line 11

def organize
  SynonymFinder.logger_write(@synonym_finder.object_id, "Grouping results")
  organize_matches
  #organize_partial_matches
  get_output
end