From 8c6c0257a6d90a307b6ad20bd3748ba4b853b944 Mon Sep 17 00:00:00 2001 From: Christopher Blum Date: Fri, 25 Mar 2022 17:23:09 +0100 Subject: [PATCH] [en] improve rules --- .../rules/en/AbstractEnglishSpellerRule.java | 1 + .../org/languagetool/rules/en/grammar.xml | 29 ++++++++++++++++--- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/languagetool-language-modules/en/src/main/java/org/languagetool/rules/en/AbstractEnglishSpellerRule.java b/languagetool-language-modules/en/src/main/java/org/languagetool/rules/en/AbstractEnglishSpellerRule.java index ad732bbc476a..7f826867f58d 100644 --- a/languagetool-language-modules/en/src/main/java/org/languagetool/rules/en/AbstractEnglishSpellerRule.java +++ b/languagetool-language-modules/en/src/main/java/org/languagetool/rules/en/AbstractEnglishSpellerRule.java @@ -609,6 +609,7 @@ protected static Map> getTopSuggestionsIgnoreCase() { s.put("MWH", Arrays.asList("MWh")); s.put("xray", Arrays.asList("X-ray")); s.put("xrays", Arrays.asList("X-rays")); + s.put("soo", Arrays.asList("so", "too", "son")); return s; } diff --git a/languagetool-language-modules/en/src/main/resources/org/languagetool/rules/en/grammar.xml b/languagetool-language-modules/en/src/main/resources/org/languagetool/rules/en/grammar.xml index 69ee733cb4f4..eb4c73bdbf19 100644 --- a/languagetool-language-modules/en/src/main/resources/org/languagetool/rules/en/grammar.xml +++ b/languagetool-language-modules/en/src/main/resources/org/languagetool/rules/en/grammar.xml @@ -100199,6 +100199,18 @@ The accident victim died from her injuries. Did you mean due to? Many restaurants will close do to the corona restrictions. + + + with + all + + do + + respect + + Did you mean due? + With all do respect. + @@ -107007,8 +107019,8 @@ The accident victim died from her injuries. due - next|last|previous|this|every|by - week(end)?|month|year|&weekdays;|&months; + next|last|previous|this|every|by|each|first|last|upcoming + week(end)?|month|year|&weekdays;|&months;|christmas|thanksgiving|summer|winter|fall|spring|automn @@ -107064,12 +107076,17 @@ The accident victim died from her injuries. this , + + due + in + parts? + due - course|today|tomorrow|tonight|yesterday|dates?|for|on|process|regard|respect|to|the|:|(&weekdays;)s?|&months;|&abbrevMonths;|&abbrevWeekdays; + ,|course|today|tomorrow|tonight|yesterday|dates?|for|on|process|regard|respect|to|the|:|(&weekdays;)s?|&months;|&abbrevMonths;|&abbrevWeekdays; @@ -107080,10 +107097,12 @@ The accident victim died from her injuries. Due to its links to active workers' movements, the In... Due the unique climate in Azerbaijan, the flora is mu... Due partly to the performance capabilities of modern ... + Due in large part to the progress he has made, we are now able to shift that effort to an individual in the region until a new hire is on board in Singapore. Due primarily to an excess of optimism in our original schedule... Due Friday. Due Fridays. Due Wed. 4/15. + Due first week in August. Due 20th of October Due this, we have no time. DUE by FRIDAY. @@ -124743,7 +124762,7 @@ The accident victim died from her injuries. - ([\d,.]{0,10}[\d]{1,10}) ?([$€£¥฿\u8371]) + (?<!$)([\d,.]{0,10}[\d]{1,10})\s?([$€£¥฿\u8371])(?!\d) The currency mark is usually put at the beginning of the number. \2\1 Put currency at the beginning @@ -124751,6 +124770,8 @@ The accident victim died from her injuries. You owe me 100$. You owe me 100,000€. You owe me 2,500,000€. + $0.0001 $0.0005 + Value to Enron in 2001 $5MM to $25MM.