Skip to content
Permalink
Browse files

move en-US-GB.txt outside of "hunspell" directory as that is not incl…

  • Loading branch information...
danielnaber committed Feb 28, 2019
1 parent 8ea6edc commit d8ba19bb414cd7195bf7572c611d3d28c82b9c11
@@ -31,7 +31,7 @@

private static final String RESOURCE_FILENAME = "/en/hunspell/en_US.dict";
private static final String LANGUAGE_SPECIFIC_PLAIN_TEXT_DICT = "en/hunspell/spelling_en-US.txt";
private static final Map<String,String> BRITISH_ENGLISH = loadWordlist("en/hunspell/en-US-GB.txt", 1);
private static final Map<String,String> BRITISH_ENGLISH = loadWordlist("en/en-US-GB.txt", 1);

public MorfologikAmericanSpellerRule(ResourceBundle messages, Language language) throws IOException {
super(messages, language, null, Collections.emptyList());
@@ -33,7 +33,7 @@

private static final String RESOURCE_FILENAME = "/en/hunspell/en_GB.dict";
private static final String LANGUAGE_SPECIFIC_PLAIN_TEXT_DICT = "en/hunspell/spelling_en-GB.txt";
private static final Map<String,String> US_ENGLISH = loadWordlist("en/hunspell/en-US-GB.txt", 0);
private static final Map<String,String> US_ENGLISH = loadWordlist("en/en-US-GB.txt", 0);

public MorfologikBritishSpellerRule(ResourceBundle messages, Language language, UserConfig userConfig, List<Language> altLanguages) throws IOException {
super(messages, language, userConfig, altLanguages);
@@ -3,7 +3,7 @@
## 4.5-SNAPSHOT(release planned for 2019-03-26)

#### English
* `resource/en/hunspell/en-US-GB.txt` contains a mapping from US to British
* `resource/en/en-US-GB.txt` contains a mapping from US to British
English and vice versa. It's not used to detect correct or incorrect spellings,
but only to improve error messages so that they explicitly explain that
the incorrect word is actually a different variant (like 'colour' in an en-US

0 comments on commit d8ba19b

Please sign in to comment.
You can’t perform that action at this time.