This commit is contained in:
Zyronon
2025-11-06 23:57:30 +08:00
parent 90fcd70604
commit df84a88473
16 changed files with 165 additions and 114 deletions

View File

@@ -427,8 +427,8 @@ function onContextMenu(e: MouseEvent, sentence: Sentence, i, j, w) {
label: "收藏单词",
onClick: () => {
let word = props.article.sections[i][j].words[w]
let doc = nlp(word.word)
let text = word.word
let doc = nlp(text)
// 优先判断是不是动词
if (doc.verbs().found) {
text = doc.verbs().toInfinitive().text()