@@ -25,6 +25,8 @@ pub fn lint_group() -> LintGroup {
2525 "Anyhow" => ( "any how" , "anyhow" ) ,
2626 "Anywhere" => ( "any where" , "anywhere" ) ,
2727 "Backplane" => ( "back plane" , "backplane" ) ,
28+ "Bypass" => ( "by pass" , "bypass" ) ,
29+ "Deadlift" => ( "dead lift" , "deadlift" ) ,
2830 "Desktop" => ( "desk top" , "desktop" ) ,
2931 "Devops" => ( "dev ops" , "devops" ) ,
3032 "Everybody" => ( "every body" , "everybody" ) ,
@@ -37,6 +39,8 @@ pub fn lint_group() -> LintGroup {
3739 "Instead" => ( "in stead" , "instead" ) ,
3840 "Intact" => ( "in tact" , "intact" ) ,
3941 "Itself" => ( "it self" , "itself" ) ,
42+ "Keystroke" => ( "key stoke" , "keystroke" ) ,
43+ "Keystrokes" => ( "key stokes" , "keystrokes" ) ,
4044 "Laptop" => ( "lap top" , "laptop" ) ,
4145 "Middleware" => ( "middle ware" , "middleware" ) ,
4246 "Misunderstand" => ( "miss understand" , "misunderstand" ) ,
@@ -59,17 +63,21 @@ pub fn lint_group() -> LintGroup {
5963 "Postpone" => ( "post pone" , "postpone" ) ,
6064 "Proofread" => ( "proof read" , "proofread" ) ,
6165 "Regardless" => ( "regard less" , "regardless" ) ,
66+ "Shortcoming" => ( "short coming" , "shortcoming" ) ,
67+ "Shortcomings" => ( "short comings" , "shortcomings" ) ,
6268 "Somebody" => ( "some body" , "somebody" ) ,
6369 "Somehow" => ( "some how" , "somehow" ) ,
6470 "Someone" => ( "some one" , "someone" ) ,
6571 "Somewhere" => ( "some where" , "somewhere" ) ,
72+ "There" => ( "the re" , "there" ) ,
6673 "Therefore" => ( "there fore" , "therefore" ) ,
6774 "Thereupon" => ( "there upon" , "thereupon" ) ,
6875 "Underclock" => ( "under clock" , "underclock" ) ,
6976 "Upset" => ( "up set" , "upset" ) ,
7077 "Upward" => ( "up ward" , "upward" ) ,
7178 "Whereupon" => ( "where upon" , "whereupon" ) ,
7279 "Widespread" => ( "wide spread" , "widespread" ) ,
80+ "Without" => ( "with out" , "without" ) ,
7381 "Worldwide" => ( "world wide" , "worldwide" ) ,
7482 } ) ;
7583
@@ -223,4 +231,60 @@ mod tests {
223231 let expected = "They set off on their journey overnight." ;
224232 assert_suggestion_result ( test_sentence, lint_group ( ) , expected) ;
225233 }
234+
235+ #[ test]
236+ fn by_pass ( ) {
237+ let test_sentence = "Please by pass this check for now." ;
238+ let expected = "Please bypass this check for now." ;
239+ assert_suggestion_result ( test_sentence, lint_group ( ) , expected) ;
240+ }
241+
242+ #[ test]
243+ fn dead_lift ( ) {
244+ let test_sentence = "I can dead lift 200 kg." ;
245+ let expected = "I can deadlift 200 kg." ;
246+ assert_suggestion_result ( test_sentence, lint_group ( ) , expected) ;
247+ }
248+
249+ #[ test]
250+ fn key_stoke ( ) {
251+ let test_sentence = "Use this key stoke to open search." ;
252+ let expected = "Use this keystroke to open search." ;
253+ assert_suggestion_result ( test_sentence, lint_group ( ) , expected) ;
254+ }
255+
256+ #[ test]
257+ fn key_stokes ( ) {
258+ let test_sentence = "These key stokes are hard to memorize." ;
259+ let expected = "These keystrokes are hard to memorize." ;
260+ assert_suggestion_result ( test_sentence, lint_group ( ) , expected) ;
261+ }
262+
263+ #[ test]
264+ fn with_out ( ) {
265+ let test_sentence = "We left with out a map." ;
266+ let expected = "We left without a map." ;
267+ assert_suggestion_result ( test_sentence, lint_group ( ) , expected) ;
268+ }
269+
270+ #[ test]
271+ fn the_re ( ) {
272+ let test_sentence = "The re are too many popups on this page." ;
273+ let expected = "There are too many popups on this page." ;
274+ assert_suggestion_result ( test_sentence, lint_group ( ) , expected) ;
275+ }
276+
277+ #[ test]
278+ fn short_coming ( ) {
279+ let test_sentence = "That bug is a short coming in the current release." ;
280+ let expected = "That bug is a shortcoming in the current release." ;
281+ assert_suggestion_result ( test_sentence, lint_group ( ) , expected) ;
282+ }
283+
284+ #[ test]
285+ fn short_comings ( ) {
286+ let test_sentence = "We listed three short comings in the postmortem." ;
287+ let expected = "We listed three shortcomings in the postmortem." ;
288+ assert_suggestion_result ( test_sentence, lint_group ( ) , expected) ;
289+ }
226290}
0 commit comments