I click on ‘sourcecode’ and I get a rule which looks completely different (like a different coding language) Here is a small extract
mport org.languagetool.rules.WordRepeatRule;
26
27 /**
28 * Avoid false alarms in the word repetition rule.
29 */
30 public class EnglishWordRepeatRule extends WordRepeatRule {
31
32 public EnglishWordRepeatRule(final ResourceBundle messages, final Language language) {
33 super(messages, language);
34 }
35
36 @Override
37 public String getId() {
38 return “ENGLISH_WORD_REPEAT_RULE”;
39 }
40
41 @Override
42 public boolean ignore(AnalyzedTokenReadings tokens, int position) {
43 if (wordRepetitionOf(“had”, tokens, position)) {
44 return true; // “If I had had time, I would have gone to see him.”
My question is simply why the same rule looks so different. Doesn’t the site and the downloaded software use the same rules?
That’s because these are two different rules. The first rule detects the repetition of two words (“at the at the end”), the other one detects a simple repetition (“at at the end”).