Class 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 java.lang.Object

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

      • BookGenerator_pl

        public BookGenerator_pl()
    • 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 class BookGenerator
        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 class BookGenerator
        Parameters:
        word - the test word
        wikiText - 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: