Package com.inet.jorthodictionaries
Class BookGenerator_pl
- java.lang.Object
-
- com.inet.jorthodictionaries.BookGenerator
-
- com.inet.jorthodictionaries.BookGenerator_pl
-
public class BookGenerator_pl extends BookGenerator
-
-
Constructor Summary
Constructors Constructor Description BookGenerator_pl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanisAlternateWords(java.lang.String word)Check if the word include 2 worde with alternate writting.private booleanisCaseLabel(java.lang.String word)Test if it is a case label like (1), (1.2) or (3.1)(package private) booleanisValidLanguage(java.lang.String word, java.lang.String wikiText)Check if a word is a valid word of the current language.private voidodmiana(int idx, java.lang.String wikiText)Flections(package private) voidstart(java.io.File file)Beginn des einlesend der Daten von dem XML stream-
Methods inherited from class com.inet.jorthodictionaries.BookGenerator
addWord, getBook, indexOf, isValidWord, main, save
-
-
-
-
Method Detail
-
start
void start(java.io.File file) throws java.lang.ExceptionDescription copied from class:BookGeneratorBeginn des einlesend der Daten von dem XML stream- Overrides:
startin classBookGenerator- Throws:
java.lang.Exception
-
isValidLanguage
boolean isValidLanguage(java.lang.String word, java.lang.String wikiText)Description copied from class:BookGeneratorCheck if a word is a valid word of the current language. With function getBook().addWord() you can add additional Flexion of the word. The current word self does not need added.- Specified by:
isValidLanguagein classBookGenerator- Parameters:
word- the test wordwikiText- die decription from Wiktionary- Returns:
- true if valid
-
odmiana
private void odmiana(int idx, java.lang.String wikiText)Flections- Parameters:
idx- start of the flextion
-
isAlternateWords
private boolean isAlternateWords(java.lang.String word)
Check if the word include 2 worde with alternate writting. If yes then both will be added.- Parameters:
word- a paosble worde alternative- Returns:
- true, if there are 2 valid words.
-
isCaseLabel
private boolean isCaseLabel(java.lang.String word)
Test if it is a case label like (1), (1.2) or (3.1)- Parameters:
word-- Returns:
-
-