// TODO: process {{ttbc}} lines
- static final Pattern partOfSpeechHeader = Pattern.compile(
+ public static final Pattern partOfSpeechHeader = Pattern.compile(
"Noun|Verb|Adjective|Adverb|Pronoun|Conjunction|Interjection|" +
"Preposition|Proper noun|Article|Prepositional phrase|Acronym|" +
"Abbreviation|Initialism|Contraction|Prefix|Suffix|Symbol|Letter|" +
"Verb phrase|Transitive verb|Intransitive verb|Reflexive verb|" +
// These are extras I found:
"Determiner|Numeral|Number|Cardinal number|Ordinal number|Proverb|" +
- "Particle|Interjection|Pronominal adverb" +
+ "Particle|Interjection|Pronominal adverb|" +
"Han character|Hanzi|Hanja|Kanji|Katakana character|Syllable");
- // Might only want to remove "lang" if it's equal to "zh", for example.
static final Set<String> USELESS_WIKI_ARGS = new LinkedHashSet<String>(
Arrays.asList(
"lang",
final AppendAndIndexWikiCallback<EnParser> appendAndIndexWikiCallback = new AppendAndIndexCallback(this);
{
appendAndIndexWikiCallback.functionCallbacks.putAll(EnFunctionCallbacks.DEFAULT);
+ for (final String key : new ArrayList<String>(appendAndIndexWikiCallback.functionCallbacks.keySet())) {
+ // Don't handle the it-conj functions here.
+ if (key.startsWith("it-conj")) {
+ appendAndIndexWikiCallback.functionCallbacks.remove(key);
+ }
+ }
}
EnParser(final IndexBuilder enIndexBuilder, final IndexBuilder otherIndexBuilder, final Pattern langPattern, final Pattern langCodePattern, final boolean swap) {