Difference between revisions of "Lint"

From Apertium
Jump to navigation Jump to search
Line 14: Line 14:
 
# Redundant Entries <pre><pardef n="di/e__vblex"><e><par n="liv/e__vblex"/></e></pardef></pre>
 
# Redundant Entries <pre><pardef n="di/e__vblex"><e><par n="liv/e__vblex"/></e></pardef></pre>
   
# Maintain consitency in the data present in the <r> tag in pardef entries.
+
#* Maintain consitency in the data present in the <r> tag in pardef entries.
   
# Paradigms should have 2:"_" instead of 1:"_"
+
#** Paradigms should have 2:"_" instead of 1:"_"
   
# Lexical entries should have appropiate attribute names. Here is an example of an invalid format which is accepted.<pre><e fm="funny"><i>funn</i><par n="funn/y__adj"/></e></pre>
+
4 Lexical entries should have appropiate attribute names. Here is an example of an invalid format which is accepted.<pre><e fm="funny"><i>funn</i><par n="funn/y__adj"/></e></pre>
   
 
# Repeated tag entries.<pre><e><p><l>y</l><r>y<s n="adj"/><s n="adj"/></r></p></e></pre>
 
# Repeated tag entries.<pre><e><p><l>y</l><r>y<s n="adj"/><s n="adj"/></r></p></e></pre>

Revision as of 07:15, 9 May 2016

About

This page contains a log of all the different errors that the lint will be designed to handle. Along with it, as it's development progresses updates will be posted here about the different releases.

Along with this, documentation about the lint's working and technicalities will also be specified here.

Monodix

List of issues in monodixes :

  1. Redundant Entries
    <pardef n="di/e__vblex"><e><par n="liv/e__vblex"/></e></pardef>
    • Maintain consitency in the data present in the <r> tag in pardef entries.
      • Paradigms should have 2:"_" instead of 1:"_"

4 Lexical entries should have appropiate attribute names. Here is an example of an invalid format which is accepted.

<e fm="funny"><i>funn</i><par n="funn/y__adj"/></e>
  1. Repeated tag entries.
    <e><p><l>y</l><r>y<s n="adj"/><s n="adj"/></r></p></e>
  1. Repeated entries in the dictionary.

<e lm="house"><i>house</i><par n="house__n"/></e> <e lm="house"><i>house</i><par n="house__n"/></e>

  1. The "cm" entry should have only the comma and nothing else.
    <e><re>,</re><p><l></l><r><s n="cm"/></r></p></e> 

Bidix

Transfer

  1. Issue in :
     <code><clip></code> 
    Problem : Check that the attribute listed in part="" is defined using a <def-attr>.

Modes

Tagger

Others

Lexical selection
  • don't use lrx-proc without the -m option.


Consistency of {Multichar_Symbols/sdefs/LISTs/SETs}
  • This may be larger task chopped to dozens of checks, but IMO source of most problems:
  • bidix should not have sdefs that are not in monodix or lexc file. (Same can be carried over to lrx, rlx, t?x etc. fails)