mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 23:52:12 -05:00
fix(dict): Avoid correcting common terms
Supersedes #965 Supersedes #973 Fixes #963 Fixes #974 Fixes #970
This commit is contained in:
parent
2b4e02de78
commit
14516cb8b0
3 changed files with 16 additions and 24 deletions
9
crates/typos-dict/assets/allowed.csv
vendored
9
crates/typos-dict/assets/allowed.csv
vendored
|
@ -24,3 +24,12 @@ eof,end-of-file in programming
|
|||
eol,end-of-line in programming
|
||||
og,OpenGraph which is used for previews of websites on social media
|
||||
jst,abbreviation of Japan Standard Time in tz database
|
||||
guid,globally-unique-identifier in programming
|
||||
ime,abbreviation of Input Method Editor
|
||||
ws,common abbreviation for websocket and workspace
|
||||
iot,acronym for Internet of Things
|
||||
iis,IIS is the webserver from Microsoft
|
||||
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
|
||||
|
|
|
9
crates/typos-dict/assets/words.csv
vendored
9
crates/typos-dict/assets/words.csv
vendored
|
@ -3110,7 +3110,6 @@ anesthisia,anesthesia
|
|||
anevironment,environment
|
||||
anevironments,environments
|
||||
anfd,and
|
||||
ang,and
|
||||
angirly,angrily
|
||||
angluar,angular
|
||||
angostic,agnostic
|
||||
|
@ -21029,7 +21028,6 @@ dupplicates,duplicates
|
|||
dupplicating,duplicating
|
||||
dupplication,duplication
|
||||
dupplications,duplications
|
||||
dur,due
|
||||
durabiliy,durability
|
||||
durabillity,durability
|
||||
durabiltiy,durability
|
||||
|
@ -28272,7 +28270,6 @@ guerrilas,guerrillas
|
|||
guerrillera,guerrilla
|
||||
guesss,guess,guesses
|
||||
gueswork,guesswork
|
||||
guid,guide
|
||||
guideance,guidance
|
||||
guideded,guided
|
||||
guidence,guidance
|
||||
|
@ -29764,7 +29761,6 @@ iimmune,immune
|
|||
iin,in
|
||||
iinclude,include
|
||||
iinterval,interval
|
||||
iis,is
|
||||
iit,it
|
||||
iiterator,iterator
|
||||
iland,island
|
||||
|
@ -29917,7 +29913,6 @@ imcompatible,incompatible
|
|||
imcompetence,incompetence
|
||||
imcomplete,incomplete
|
||||
imcomprehensible,incomprehensible
|
||||
ime,time
|
||||
imedatly,immediately
|
||||
imedialy,immediately
|
||||
imediate,immediate
|
||||
|
@ -33801,7 +33796,6 @@ ioclt,ioctl
|
|||
iomaped,iomapped
|
||||
ionde,inode
|
||||
iornman,ironman
|
||||
iot,it
|
||||
iound,round,wound
|
||||
iplementation,implementation
|
||||
ipmrovement,improvement
|
||||
|
@ -35790,7 +35784,6 @@ lsit,list,slit,sit
|
|||
lsiting,listing
|
||||
lsits,lists,slits,sits
|
||||
lso,also
|
||||
lst,last
|
||||
luanched,launched
|
||||
luancher,launcher
|
||||
luanchers,launchers
|
||||
|
@ -51727,7 +51720,6 @@ rmove,remove
|
|||
rmoved,removed
|
||||
rmoving,removing
|
||||
rnage,rage,range
|
||||
ro,to
|
||||
roachers,roaches
|
||||
roahces,roaches
|
||||
roataion,rotation
|
||||
|
@ -64938,7 +64930,6 @@ wryth,writhe
|
|||
wrythed,writhed
|
||||
wrythes,writhes
|
||||
wrything,writhing
|
||||
ws,was
|
||||
wsee,see
|
||||
wser,user
|
||||
wth,with
|
||||
|
|
Can't render this file because it is too large.
|
|
@ -848,7 +848,7 @@ pub static WORD_WT_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg
|
|||
|
||||
static WORD_WS_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {
|
||||
children: dictgen::DictTrieChild::Flat(&WORD_WS_CHILDREN),
|
||||
value: Some(&["was"]),
|
||||
value: None,
|
||||
};
|
||||
|
||||
pub static WORD_WS_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable {
|
||||
|
@ -45177,7 +45177,7 @@ pub static WORD_RP_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg
|
|||
|
||||
static WORD_RO_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {
|
||||
children: dictgen::DictTrieChild::Nested(&WORD_RO_CHILDREN),
|
||||
value: Some(&["to"]),
|
||||
value: None,
|
||||
};
|
||||
|
||||
static WORD_RO_CHILDREN: [Option<&dictgen::DictTrieNode<&'static [&'static str]>>; 26] = [
|
||||
|
@ -99731,7 +99731,6 @@ pub static WORD_LS_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg
|
|||
dictgen::InsensitiveStr::Ascii("iting"),
|
||||
dictgen::InsensitiveStr::Ascii("its"),
|
||||
dictgen::InsensitiveStr::Ascii("o"),
|
||||
dictgen::InsensitiveStr::Ascii("t"),
|
||||
],
|
||||
values: &[
|
||||
&["last", "slat", "sat"],
|
||||
|
@ -99740,7 +99739,6 @@ pub static WORD_LS_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg
|
|||
&["listing"],
|
||||
&["lists", "slits", "sits"],
|
||||
&["also"],
|
||||
&["last"],
|
||||
],
|
||||
range: 1..=5,
|
||||
};
|
||||
|
@ -106372,7 +106370,6 @@ pub static WORD_IO_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg
|
|||
dictgen::InsensitiveStr::Ascii("maped"),
|
||||
dictgen::InsensitiveStr::Ascii("nde"),
|
||||
dictgen::InsensitiveStr::Ascii("rnman"),
|
||||
dictgen::InsensitiveStr::Ascii("t"),
|
||||
dictgen::InsensitiveStr::Ascii("und"),
|
||||
],
|
||||
values: &[
|
||||
|
@ -106380,10 +106377,9 @@ pub static WORD_IO_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg
|
|||
&["iomapped"],
|
||||
&["inode"],
|
||||
&["ironman"],
|
||||
&["it"],
|
||||
&["round", "wound"],
|
||||
],
|
||||
range: 1..=5,
|
||||
range: 3..=5,
|
||||
};
|
||||
|
||||
static WORD_IN_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {
|
||||
|
@ -118972,7 +118968,7 @@ pub static WORD_IMF_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict
|
|||
|
||||
static WORD_IME_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {
|
||||
children: dictgen::DictTrieChild::Flat(&WORD_IME_CHILDREN),
|
||||
value: Some(&["time"]),
|
||||
value: None,
|
||||
};
|
||||
|
||||
pub static WORD_IME_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable {
|
||||
|
@ -119550,7 +119546,6 @@ pub static WORD_II_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg
|
|||
dictgen::InsensitiveStr::Ascii("n"),
|
||||
dictgen::InsensitiveStr::Ascii("nclude"),
|
||||
dictgen::InsensitiveStr::Ascii("nterval"),
|
||||
dictgen::InsensitiveStr::Ascii("s"),
|
||||
dictgen::InsensitiveStr::Ascii("t"),
|
||||
dictgen::InsensitiveStr::Ascii("terator"),
|
||||
],
|
||||
|
@ -119560,7 +119555,6 @@ pub static WORD_II_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg
|
|||
&["in"],
|
||||
&["include"],
|
||||
&["interval"],
|
||||
&["is"],
|
||||
&["it"],
|
||||
&["iterator"],
|
||||
],
|
||||
|
@ -125000,7 +124994,6 @@ static WORD_GUI_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::
|
|||
|
||||
pub static WORD_GUI_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable {
|
||||
keys: &[
|
||||
dictgen::InsensitiveStr::Ascii("d"),
|
||||
dictgen::InsensitiveStr::Ascii("deance"),
|
||||
dictgen::InsensitiveStr::Ascii("deded"),
|
||||
dictgen::InsensitiveStr::Ascii("dence"),
|
||||
|
@ -125015,7 +125008,6 @@ pub static WORD_GUI_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict
|
|||
dictgen::InsensitiveStr::Ascii("tarit"),
|
||||
],
|
||||
values: &[
|
||||
&["guide"],
|
||||
&["guidance"],
|
||||
&["guided"],
|
||||
&["guidance"],
|
||||
|
@ -125029,7 +125021,7 @@ pub static WORD_GUI_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict
|
|||
&["guitars"],
|
||||
&["guitarist"],
|
||||
],
|
||||
range: 1..=6,
|
||||
range: 3..=6,
|
||||
};
|
||||
|
||||
static WORD_GUE_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {
|
||||
|
@ -148711,7 +148703,7 @@ pub static WORD_DUS_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict
|
|||
|
||||
static WORD_DUR_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {
|
||||
children: dictgen::DictTrieChild::Flat(&WORD_DUR_CHILDREN),
|
||||
value: Some(&["due"]),
|
||||
value: None,
|
||||
};
|
||||
|
||||
pub static WORD_DUR_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable {
|
||||
|
@ -208789,7 +208781,7 @@ pub static WORD_ANH_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict
|
|||
|
||||
static WORD_ANG_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {
|
||||
children: dictgen::DictTrieChild::Flat(&WORD_ANG_CHILDREN),
|
||||
value: Some(&["and"]),
|
||||
value: None,
|
||||
};
|
||||
|
||||
pub static WORD_ANG_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable {
|
||||
|
|
Loading…
Reference in a new issue