chengjie 4 months ago
parent
commit
f0dc0f9abd
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/api/yjbdc/aiController.js
  2. 1 1
      src/api/yjbdc/yjbdcController.js

+ 1 - 1
src/api/yjbdc/aiController.js

@@ -400,7 +400,7 @@ export function enhanceFormsOfWords(jsonObj, userWords) {
400 400
             // 1. 对于短单词(长度<=4),只接受编辑距离为1的情况
401 401
             // 2. 对于中等长度单词(4<长度<=8),只接受编辑距离为1的情况
402 402
             // 3. 对于长单词(长度>8),允许编辑距离为2,但有额外限制
403
-            if (originalWord.length <= 8) {
403
+            if (originalWord.length >= 5 && originalWord.length <= 8) {
404 404
                 // 短单词和中等长度单词使用相同的严格条件
405 405
                 if (articleWord[0] === originalWord[0] && // 首字母必须相同
406 406
                     Math.abs(articleWord.length - originalWord.length) <= 1 && // 长度差不超过1

File diff suppressed because it is too large
+ 1 - 1
src/api/yjbdc/yjbdcController.js