Core logic implementation

Candidates generation was conencted with the synonyms discovery and
output dump.