|
|||||||||
| Home >> All >> com >> eireneh >> bible >> control >> [ dictionary overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.eireneh.bible.control.dictionary
Class Grammar

java.lang.Objectcom.eireneh.bible.control.dictionary.Grammar
- public class Grammar
- extends java.lang.Object
Grammar.
|
Distribution Licence: Project B is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below. The copyright to this program is held by it's authors. |
| Field Summary | |
private static java.lang.String[] |
endings
The Endings a word can have. |
private static java.lang.String[] |
word_freq
The one hundred most used words, and the instance count |
| Constructor Summary | |
Grammar()
|
|
| Method Summary | |
static java.lang.String |
getRoot(java.lang.String word)
Strip of any parts of speech to leave a root word. |
static boolean |
isSmallWord(java.lang.String word)
Is this word one of those small words that can slaughter a DB query. |
static java.lang.String[] |
stripSmallWords(java.lang.String[] words)
Is this word one of those small words that can slaughter a DB query |
static java.lang.String[] |
tokenizeWithoutSmallWords(java.lang.String original,
java.lang.String delims)
Like PassageUtil.tokenize that leaves out the small words |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
endings
private static final java.lang.String[] endings
- The Endings a word can have.
These are matched in order so there is no point in having "s"
before "es" because the second will not be tried.
word_freq
private static final java.lang.String[] word_freq
- The one hundred most used words, and the instance count
| Constructor Detail |
Grammar
public Grammar()
| Method Detail |
getRoot
public static java.lang.String getRoot(java.lang.String word)
- Strip of any parts of speech to leave a root word.
This class may not be the best place for this code, however I'm not
sure if we have a better place for it at the mo. Maybe it should be
in passage.PassageUtil?
isSmallWord
public static boolean isSmallWord(java.lang.String word)
- Is this word one of those small words that can slaughter a DB
query. An empty string IS a small word.
stripSmallWords
public static java.lang.String[] stripSmallWords(java.lang.String[] words)
- Is this word one of those small words that can slaughter a DB query
tokenizeWithoutSmallWords
public static java.lang.String[] tokenizeWithoutSmallWords(java.lang.String original, java.lang.String delims)
- Like PassageUtil.tokenize that leaves out the small words
|
|||||||||
| Home >> All >> com >> eireneh >> bible >> control >> [ dictionary overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.eireneh.bible.control.dictionary.Grammar