Skip to content

Commit

Permalink
phraser: further tamp down long space-less "words" from crossword lists
Browse files Browse the repository at this point in the history
  • Loading branch information
lahosken committed Oct 7, 2021
1 parent 00b6288 commit 4f14a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phraser/phraser.go
Expand Up @@ -641,7 +641,7 @@ func readXWdLists(fodderPath, tmpPath string) {
// So fake it: if we see a long "word" with no spaces,
// don't boost its score so much:
if len(phrase) > 5 && !strings.Contains(phrase, " ") {
score /= 2
score /= len(phrase)
}
if score < 10 {
continue
Expand Down

0 comments on commit 4f14a40

Please sign in to comment.