Class BookGenerator_nl


  • public class BookGenerator_nl
    extends BookGenerator
    BookGenerator class for the Dutch language
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void addDeclination​(java.lang.String root, java.util.Properties props, int count)
      Add declination words from a used template
      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
      (package private) boolean isValidLanguage​(java.lang.String word, java.lang.String wikiText)
      Check if a word is a valid word of the current language.
      protected boolean isValidWord​(java.lang.String word)
      Override to accept also declination
      private java.lang.String removeQuotes​(java.lang.String word)
      Remove some thing of quotes and formating from a word or word phrase
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BookGenerator_nl

        public BookGenerator_nl()
    • Method Detail

      • isValidWord

        protected boolean isValidWord​(java.lang.String word)
        Override to accept also declination
        Overrides:
        isValidWord in class BookGenerator
        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: 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 class BookGenerator
        Parameters:
        word - the test word
        wikiText - 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 word
        wikiText - the wiki text
        template - the template to search
        count - 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 word
        props - the parsed value from the used template
        count - 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: