sohaibafifi / languagetool

A fork of languagetool to maintain Arabic
https://languagetool.org
GNU Lesser General Public License v2.1
18 stars 1 forks source link

problem in a rule #42

Closed linuxscout closed 3 years ago

linuxscout commented 4 years ago

The following example is accepted on running test, but give an other suggestion on GUI

rule id is trans_394_AstwTn_fy .

 <!-- trans_394_AstwTn_fy استوطن في -->
  <rule id="trans_394_AstwTn_fy" name="استوطن في">
    <pattern>
      <marker><token inflected="yes" skip="1">اِسْتَوْطَنَ</token>

        <token regexp="yes">&forms_fi;</token>
      </marker>
    </pattern>
    <message>يفضل أن يقال: 
    <suggestion><match no="1" postag="(V.*)(-)" postag_replace="$1H">اِسْتَوْطَنَ</match><match no="2" regexp_match="في" regexp_replace=""/></suggestion>
</message>
    <example correction="استوطنها|استوطننها" type="incorrect"> حل خالد بحمص <marker>استوطن فيها</marker> </example>
<example correction="واستوطنها|واستوطننها" type="incorrect"> حل خالد بحمص <marker>واستوطن فيها</marker> </example>
    <!--<example correction="واستوطنها" type="incorrect"> حل خالد بحمص<marker>واستوطن فيها</marker> </example>-->
    <example type="correct"> استوطن البلاد </example>
  </rule>
linuxscout commented 3 years ago

fixed