summaryrefslogtreecommitdiffstats
path: root/JLanguageTool/src/rules/false-friends.dtd
diff options
context:
space:
mode:
Diffstat (limited to 'JLanguageTool/src/rules/false-friends.dtd')
-rw-r--r--JLanguageTool/src/rules/false-friends.dtd75
1 files changed, 75 insertions, 0 deletions
diff --git a/JLanguageTool/src/rules/false-friends.dtd b/JLanguageTool/src/rules/false-friends.dtd
new file mode 100644
index 0000000..ae08edb
--- /dev/null
+++ b/JLanguageTool/src/rules/false-friends.dtd
@@ -0,0 +1,75 @@
+<!--
+False Friends DTD
+Daniel Naber (http://www.danielnaber.de), 2001-12-21, 2005-08-20
+
+This DTD defines a format for "false friends".
+
+The DTD is designed in a way so that false friends can be
+used in both ways, e.g. 'actual' is a false friend for
+speakers of German, and 'aktuell' is a false friend for
+speakers of English who write a text in German. The file
+is not limited to English/German but can actually be
+extended to any number of languages, hopefully with minimal
+redundancy.
+-->
+
+<!ENTITY % Languages "(en|de|fr|es|pl|sv|gl|ca|it)">
+
+<!ELEMENT rules (rulegroup)+>
+<!ELEMENT rulegroup (rule+)>
+<!ATTLIST rulegroup id ID #REQUIRED>
+<!-- Whether the rule is switched by default off -->
+<!ATTLIST rulegroup default (off|on) #IMPLIED>
+
+<!ELEMENT rule (pattern, translation+, example*)>
+<!-- Whether the rule is switched by default off -->
+<!ATTLIST rule default (off|on) #IMPLIED>
+
+<!ELEMENT pattern (token)*>
+<!ATTLIST pattern lang %Languages; #REQUIRED>
+
+<!ELEMENT token (#PCDATA|exception)*>
+<!-- is token a lemma? -->
+<!ATTLIST token inflected (yes|no) "no">
+<!-- is it a regexp? -->
+<!ATTLIST token regexp (yes|no) "no">
+<!-- is it negated? - instead of ^ in 0.8.2 -->
+<!ATTLIST token negate (yes|no) "no">
+<!-- POS tag -->
+<!ATTLIST token postag CDATA #IMPLIED>
+<!ATTLIST token postag_regexp (yes|no) "no">
+<!ATTLIST token negate_pos (yes|no) "no">
+<!ATTLIST token postag_exceptions CDATA #IMPLIED>
+<!-- number of tags to skip before the match is found -->
+<!ATTLIST token skip CDATA #IMPLIED>
+<!-- Spaces are important for matching, leave them alone: -->
+<!ATTLIST token
+ xml:space (preserve) #FIXED 'preserve'>
+
+<!-- exception element -->
+<!ELEMENT exception (#PCDATA)>
+<!-- is exception a lemma? -->
+<!ATTLIST exception inflected (yes|no) "no">
+<!-- is it a regexp? -->
+<!ATTLIST exception regexp (yes|no) "no">
+<!-- is it negated? - instead of ^ in 0.8.2 -->
+<!ATTLIST exception negate (yes|no) "no">
+<!-- POS tag -->
+<!ATTLIST exception postag CDATA #IMPLIED>
+<!ATTLIST exception postag_regexp (yes|no) "no">
+<!ATTLIST exception negate_pos (yes|no) "no">
+
+<!-- defines if the exception should apply to skipped tokens -->
+<!-- i.e., the validity scope of the exception -->
+<!ATTLIST exception scope (current|next) "current">
+
+
+<!ELEMENT translation (#PCDATA)>
+<!ATTLIST translation lang %Languages; #REQUIRED>
+
+<!ELEMENT example (#PCDATA)>
+<!ATTLIST example type (correct|incorrect) #REQUIRED>
+<!-- Spaces are important for testing suggestions, leave them alone: -->
+<!ATTLIST example
+ xml:space (preserve) #FIXED 'preserve'>
+