Skip to content

Commit

Permalink
[en] fix tests with new dicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jaumeortola committed Jan 6, 2024
1 parent 52aaa6b commit 84957f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@
<example type="untouched">I best my opponents.</example>
<example type="untouched">He brought out the best in people.</example>
<example type="untouched">He brought out the very best in people.</example>
<example type="ambiguous" inputform="best[best/NN:U,best/VB,best/VBP,good/JJS,well/JJS,well/RBS]" outputform="best[good/JJS]">It's <marker>best</marker> for him.</example>
<example type="ambiguous" inputform="best[best/NN:U,best/VB,best/VBP,good/JJS,well/JJS,well/RBS]" outputform="best[well/JJS]">It's <marker>best</marker> for him.</example>
</rule>

<rule name="Modal verb + verb/noun -&gt; modal verb + verb" id="MD_VB">
Expand Down Expand Up @@ -9436,7 +9436,7 @@ Incorrectly touched. <example type="untouched">Incorrect grammar. Those present
<exception postag="NN|JJ.*" postag_regexp="yes"/>
<exception scope="next" postag="DT|RB" postag_regexp="yes"/>
<exception case_sensitive="yes">BE</exception>
<exception regexp="yes">barks?|goes|tells|says|finds|thinks|gets</exception>
<exception regexp="yes">barks?|goes|tells|says|finds|thinks|gets|make</exception>
</token>
<token postag="VB[ZP]?" postag_regexp="yes"/>
</and>
Expand Down Expand Up @@ -9487,7 +9487,7 @@ Incorrectly touched. <example type="untouched">Incorrect grammar. Those present
<example type="untouched">The advert for bicycles is to <marker>be run</marker> in local newspapers from March to August.</example>
<example type="untouched">Incorrect grammar: I'm <marker>find</marker> macro focus stacking hard.</example>
<example type="untouched">I have <marker>notice</marker> LanguageTool doesn't find all errors.</example><!-- Possibly a noun (=somebody has told me (that)), but possibly incorrect verb form (should be 'noticed') -->
<example type="ambiguous" inputform="weeds[weed/NNS,weed/VBZ]" outputform="weeds[weed/NNS]">Although they are often considered to be <marker>weeds</marker> in gardens, this viewpoint is not always...</example>
<!-- done by VBP_NN_VBZ <example type="ambiguous" inputform="weeds[weed/NNS,weed/VBZ]" outputform="weeds[weed/NNS]">Although they are often considered to be <marker>weeds</marker> in gardens, this viewpoint is not always...</example>-->
</rule>

<rule name="saw as a verb" id="PRP_SAW">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59300,8 +59300,8 @@ USA
<message>The verb '\2' does not usually follow articles like '\1'. Check that '\2' is spelled correctly; using '\2' as a noun may be non-standard.</message>
<suggestion>\1 {suggestion}</suggestion>
<example correction="a competed|a complete|a compote"><marker>a compete</marker></example>
<example correction="a Brine|a Briny|a being|a boring|a brine|a briny">... the club managed to <marker>a bring</marker> their total revenue up to € 54 million euros.</example><!-- Incorrect suggestions, incorrect 'a' -->
<example correction="an BS|an Bi|an Re|an bed|an bet|an bi|an by|an bye|an pe|an re">Let me know if Ic <marker>an be</marker> of assistance.</example>
<example correction="a Brine|a Briny|a being|a bling|a boring|a brine|a briny">... the club managed to <marker>a bring</marker> their total revenue up to € 54 million euros.</example><!-- Incorrect suggestions, incorrect 'a' -->
<example correction="an BS|an Bi|an Re|an bed|an bet|an bi|an by|an bye|an |an pe">Let me know if Ic <marker>an be</marker> of assistance.</example>
<example correction="a Sand|a Seed|a sand|a seed|a sent">Might be overkill for your current needs, but worth <marker>a send</marker>.</example>
<example correction="an extent">At Intel's first and blend" financing of a reduced rate increase and (2) <marker>an extend</marker> and blend product with financed rate reduction embedded in a collar.</example>
<example correction="an incest">The markets were great in 98 and 99 with the first annuities that we made <marker>an invest</marker> in.</example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public void testMorfologikSpeller() throws IOException {

RuleMatch[] matches3 = rule.match(lt.getAnalyzedSentence("I'm g oing"));
Assert.assertThat(matches3.length, is(1));
Assert.assertThat(matches3[0].getSuggestedReplacements().get(0), is("go ing"));
Assert.assertThat(matches3[0].getSuggestedReplacements().get(1), is("going"));
Assert.assertThat(matches3[0].getSuggestedReplacements().get(0), is("going"));
Assert.assertThat(matches3[0].getSuggestedReplacements().get(1), is("g going"));
Assert.assertThat(matches3[0].getFromPos(), is(4));
Assert.assertThat(matches3[0].getToPos(), is(10));

Expand Down

0 comments on commit 84957f1

Please sign in to comment.