Browse Source

weight shorter matches to help with false +'s

master
nerdy-sam 1 year ago
parent
commit
727c7485d1
No known key found for this signature in database GPG Key ID: 8A814BCF72590007
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bot.js

+ 1
- 1
bot.js View File

@@ -89,7 +89,7 @@ schedule.scheduleJob({
// require at least a 80% match score and weight shorter matches
// NOTE: All false positives I've ran across are longer than verseWord
if (jwNum >= 0.80) {
if (jwNum >= 0.85) {
const score = jwNum * (verseWord.length / dictWord.length)
w1828Scored.push({vw: verseWord, dw: dictWord, sc: score})
}


Loading…
Cancel
Save