diff --git a/languagetool-language-modules/pt/src/main/java/org/languagetool/rules/pt/MorfologikPortugueseSpellerRule.java b/languagetool-language-modules/pt/src/main/java/org/languagetool/rules/pt/MorfologikPortugueseSpellerRule.java index 06016c713cb98..5ce0ad9a792de 100644 --- a/languagetool-language-modules/pt/src/main/java/org/languagetool/rules/pt/MorfologikPortugueseSpellerRule.java +++ b/languagetool-language-modules/pt/src/main/java/org/languagetool/rules/pt/MorfologikPortugueseSpellerRule.java @@ -21,8 +21,9 @@ public String getFileName() { @Override public String getId() { - return "MORFOLOGIK_RULE_" - + language.getShortCodeWithCountryAndVariant().replace("-", "_").toUpperCase(); + return "HUNSPELL_RULE"; + /*return "MORFOLOGIK_RULE_" + + language.getShortCodeWithCountryAndVariant().replace("-", "_").toUpperCase();*/ } public MorfologikPortugueseSpellerRule(ResourceBundle messages, Language language, UserConfig userConfig, diff --git a/languagetool-language-modules/pt/src/test/java/org/languagetool/rules/pt/PortugueseTest.java b/languagetool-language-modules/pt/src/test/java/org/languagetool/rules/pt/PortugueseTest.java index 615156c9407ff..834177e76ae7d 100644 --- a/languagetool-language-modules/pt/src/test/java/org/languagetool/rules/pt/PortugueseTest.java +++ b/languagetool-language-modules/pt/src/test/java/org/languagetool/rules/pt/PortugueseTest.java @@ -36,7 +36,7 @@ public void testLanguage() throws IOException { testDemoText(ptPT, s, Arrays.asList("POSSESSIVE_WITHOUT_ARTICLE", "SPACE_AFTER_PUNCTUATION", "GENERAL_GENDER_AGREEMENT_ERRORS", "AFIM_DE", "PORTUGUESE_WORD_REPEAT_RULE", "PT_AGREEMENT_REPLACE_DETECTAR", "TAL_VEZ", "GENERAL_NUMBER_AGREEMENT_ERRORS", "GENERAL_VERB_AGREEMENT_ERRORS", "UPPERCASE_SENTENCE_START", - "MORFOLOGIK_RULE_PT_PT", "UNPAIRED_BRACKETS", "DOUBLE_PUNCTUATION", "PHRASE_REPETITION", "GENTILICOS_LINGUAS", "GENTILICOS_LINGUAS", "ARTICLES_PRECEDING_LOCATIONS", //"REPEATED_WORDS", + "HUNSPELL_RULE", "UNPAIRED_BRACKETS", "DOUBLE_PUNCTUATION", "PHRASE_REPETITION", "GENTILICOS_LINGUAS", "GENTILICOS_LINGUAS", "ARTICLES_PRECEDING_LOCATIONS", //"REPEATED_WORDS", "PARONYM_ANALISE_363", "DOUBLE_PUNCTUATION", "POSSESSIVE_WITHOUT_ARTICLE", "EQUIPES", "DATE_WEEKDAY") ); runTests(ptPT, null, "õș"); @@ -44,7 +44,7 @@ public void testLanguage() throws IOException { String s2 = "Cole aqui seu texto...ou verifique esta texto, afim de revelar alguns dos dos problemas que o LanguageTool consegue detectar. Isto tal vez permita corrigir os seus erro. Nós prometo ajudá-lo. para testar a grafia e as regrs do antigo) Acordo Ortográfico,, verifique o mesmo texto mesmo texto em Português de Angola ou Português do Moçambique e faça a analise dos resultados.. Nossa equipe anuncia a versão 4.5, que será lançada sexta-feira, 26 de março de 2019."; testDemoText(ptBR, s2, Arrays.asList("SPACE_AFTER_PUNCTUATION", "GENERAL_GENDER_AGREEMENT_ERRORS", "AFIM_DE", "PORTUGUESE_WORD_REPEAT_RULE", "TAL_VEZ", - "GENERAL_NUMBER_AGREEMENT_ERRORS", "GENERAL_VERB_AGREEMENT_ERRORS", "UPPERCASE_SENTENCE_START", "MORFOLOGIK_RULE_PT_BR", + "GENERAL_NUMBER_AGREEMENT_ERRORS", "GENERAL_VERB_AGREEMENT_ERRORS", "UPPERCASE_SENTENCE_START", "HUNSPELL_RULE", "UNPAIRED_BRACKETS", "DOUBLE_PUNCTUATION", "PHRASE_REPETITION", "GENTILICOS_LINGUAS", "GENTILICOS_LINGUAS", "PARONYM_ANALISE_363", "DOUBLE_PUNCTUATION", "DATE_WEEKDAY") );