* multiple times). In contrast, iterating over"word_groups" will
* have you visit each group only once. */
const word_groups = Object.entries(word_maps).filter(
- entry => entry[0] === entry[1].words[0]).map(entry => entry[1]);
+ entry => entry[0] === this.canonize(entry[1].words[0]))
+ .map(entry => entry[1]);
/* Now, go through each word group and assign the scores out to
* the corresponding players.