|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.jsword.book.search.Grammar
public class Grammar
A class representing various grammatical constructs (in English).
|
Distribution Licence: JSword 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, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA The copyright to this program is held by it's authors. |
Licence| Field Summary | |
|---|---|
private static String[] |
ENDINGS
The Endings a word can have. |
private static String[] |
WORD_FREQ
The one hundred most used words, and the instance count |
| Constructor Summary | |
|---|---|
private |
Grammar()
Prevent Instansiation |
| Method Summary | |
|---|---|
static String |
getRoot(String word)
Strip of any parts of speech to leave a root word. |
static boolean |
isSmallWord(String word)
Is this word one of those small words that can slaughter a DB query. |
static String[] |
stripSmallWords(String[] words)
Is this word one of those small words that can slaughter a DB query |
static String[] |
tokenizeWithoutSmallWords(String original,
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 |
|---|
private static final String[] ENDINGS
private static final String[] WORD_FREQ
| Constructor Detail |
|---|
private Grammar()
| Method Detail |
|---|
public static String getRoot(String word)
word - The word to strip
public static boolean isSmallWord(String word)
word - The word to testpublic static String[] stripSmallWords(String[] words)
public static String[] tokenizeWithoutSmallWords(String original,
String delims)
original - The sentance to split updelims - The word separators
|
Copyright ? 2003-2004 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||