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 4bb316f061ff..35115f6571ca 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 @@ -191,6 +191,7 @@ public List getAdditionalSpellingFileNames() { private static final Pattern WHEREEVER = compile("[Ww]hereever"); private static final Pattern WHATSAPP = compile("[Ww]hatsapp"); private static final Pattern JETLAGGED = compile("jetlagged"); + private static final Pattern MACBOOK = compile("[Mm]acbooks?"); private static final Pattern LIKELYHOOD = compile("[Ll]ikelyhood"); private static final Pattern UNECESSARY = compile("[Uu]necessary"); private static final Pattern HUBSPOT = compile("[Hh]ubspot"); @@ -1535,6 +1536,7 @@ protected List getOnlySuggestions(String word) { if (WHEREEVER.matcher(word).matches()) return topMatch(word.replaceFirst("hereever", "herever")); if (WHATSAPP.matcher(word).matches()) return topMatch("WhatsApp"); if (JETLAGGED.matcher(word).matches()) return topMatch("jet-lagged"); + if (MACBOOK.matcher(word).matches()) return topMatch(word.replaceFirst("acbook", "acBook")); if (LIKELYHOOD.matcher(word).matches()) return topMatch(word.replaceFirst("ikelyhood", "ikelihood")); if (UNECESSARY.matcher(word).matches()) return topMatch(word.replaceFirst("necessary", "nnecessary")); if (TV.matcher(word).matches()) {