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 boolean
isAlternateWords(java.lang.String word)
Check if the word include 2 worde with alternate writting.private boolean
isCaseLabel(java.lang.String word)
Test if it is a case label like (1), (1.2) or (3.1)(package private) boolean
isValidLanguage(java.lang.String word, java.lang.String wikiText)
Check if a word is a valid word of the current language.private void
odmiana(int idx, java.lang.String wikiText)
Flections(package private) void
start(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.Exception
Description copied from class:BookGenerator
Beginn des einlesend der Daten von dem XML stream- Overrides:
start
in classBookGenerator
- Throws:
java.lang.Exception
-
isValidLanguage
boolean isValidLanguage(java.lang.String word, java.lang.String wikiText)
Description copied from class:BookGenerator
Check 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:
isValidLanguage
in 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:
-
-