From 47790f2a1181b0e190066346d2f25238a0d7f574 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 4 Apr 2024 09:03:09 -0500 Subject: [PATCH] fix(dict): Don't correct `ans` Fixes #980 --- crates/typos-dict/assets/allowed.csv | 1 + crates/typos-dict/assets/words.csv | 1 - crates/typos-dict/src/word_codegen.rs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/typos-dict/assets/allowed.csv b/crates/typos-dict/assets/allowed.csv index d2e79b7..8f2d396 100644 --- a/crates/typos-dict/assets/allowed.csv +++ b/crates/typos-dict/assets/allowed.csv @@ -33,3 +33,4 @@ ro,acronym for read-only dur,abbreviation for duration ang,abbreviation for angle lst,abbreviation for list especially when list is a built-in like Python +ans,abbrevation for answer diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index ba0d079..a68ec01 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -3383,7 +3383,6 @@ anpitheater,amphitheater anpitheaters,amphitheaters anrachist,anarchist anroid,android -ans,and ansalisation,nasalisation ansalization,nasalization ansamble,ensemble diff --git a/crates/typos-dict/src/word_codegen.rs b/crates/typos-dict/src/word_codegen.rs index 12b0c05..b59206c 100644 --- a/crates/typos-dict/src/word_codegen.rs +++ b/crates/typos-dict/src/word_codegen.rs @@ -207852,7 +207852,7 @@ pub static WORD_ANTA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic static WORD_ANS_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { children: dictgen::DictTrieChild::Flat(&WORD_ANS_CHILDREN), - value: Some(&["and"]), + value: None, }; pub static WORD_ANS_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable {