Package com.inet.jorthodictionaries
Class BookGenerator_nl
- java.lang.Object
-
- com.inet.jorthodictionaries.BookGenerator
-
- com.inet.jorthodictionaries.BookGenerator_nl
-
public class BookGenerator_nl extends BookGenerator
BookGenerator class for the Dutch language
-
-
Constructor Summary
Constructors Constructor Description BookGenerator_nl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddDeclination(java.lang.String root, java.util.Properties props, int count)Add declination words from a used templateprivate voidaddTemplate(java.lang.String word, java.lang.String wikiText, java.lang.String template, int count)Add the words for a template if the template is in the wiki text(package private) booleanisValidLanguage(java.lang.String word, java.lang.String wikiText)Check if a word is a valid word of the current language.protected booleanisValidWord(java.lang.String word)Override to accept also declinationprivate java.lang.StringremoveQuotes(java.lang.String word)Remove some thing of quotes and formating from a word or word phrase
-
-
-
Method Detail
-
isValidWord
protected boolean isValidWord(java.lang.String word)
Override to accept also declination- Overrides:
isValidWordin classBookGenerator- Parameters:
word- the to check- Returns:
- true, if the word is valid
-
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
-
addTemplate
private void addTemplate(java.lang.String word, java.lang.String wikiText, java.lang.String template, int count)Add the words for a template if the template is in the wiki text- Parameters:
word- the lemma wordwikiText- the wiki texttemplate- the template to searchcount- the maximum count of words in the template
-
addDeclination
private void addDeclination(java.lang.String root, java.util.Properties props, int count)Add declination words from a used template- Parameters:
root- the lemma wordprops- the parsed value from the used templatecount- the maximum count of words in the template
-
removeQuotes
private java.lang.String removeQuotes(java.lang.String word)
Remove some thing of quotes and formating from a word or word phrase- Parameters:
word- the word or word phrase- Returns:
-
-