Navigation Menu

Skip to content

Commit

Permalink
Report the count of the loaded synonyms
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 9, 2012
1 parent bf206cb commit d35ae63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/gcs-configure-text-options
Expand Up @@ -62,9 +62,11 @@ if (commandLine.options.printStems) {
synonymsCSV.split('\n').forEach(function(synonym) {
var terms = synonym.split(',');
var key = terms.shift();
synonyms[key] = terms;
var previousTerms = synonyms[key] || [];
synonyms[key] = previousTerms.concat(terms);
});
commandLine.domain.updateSynonymsSync(synonyms);
console.log('%s synonyms are loaded.', Object.keys(synonyms).length);
}
}

Expand Down

0 comments on commit d35ae63

Please sign in to comment.