- AbbreviationDictionaryManager - Class in uk.ac.open.crc.mdsc
-
Provides a dictionary for looking up abbreviations.
- AbbreviationDictionaryManager() - Constructor for class uk.ac.open.crc.mdsc.AbbreviationDictionaryManager
-
Creates a default set of abbreviation dictionaries.
- AcronymDictionaryManager - Class in uk.ac.open.crc.mdsc
-
Provides a dictionary for looking up acronyms.
- AcronymDictionaryManager() - Constructor for class uk.ac.open.crc.mdsc.AcronymDictionaryManager
-
Creates a default set of normalised acronym dictionaries.
- addDictionary(File) - Method in class uk.ac.open.crc.mdsc.engine.HashedSpellingDictionary
-
Add words from a file to an existing dictionary HashMap.
- addDictionary(Reader) - Method in class uk.ac.open.crc.mdsc.engine.HashedSpellingDictionary
-
Add words from a Reader to existing dictionary HashMap.
- addDictionaryHelper(BufferedReader) - Method in class uk.ac.open.crc.mdsc.engine.HashedSpellingDictionary
-
Adds to the existing dictionary from a word list file.
- addWord(String) - Method in class uk.ac.open.crc.mdsc.engine.CachedDichotomyDiskSpellingDictionary
-
Add a word permanently to the dictionary (and the dictionary file).
- addWord(String) - Method in class uk.ac.open.crc.mdsc.engine.DichotomyDiskSpellingDictionary
-
Add a word permanently to the dictionary (and the dictionary file).
- addWord(String) - Method in class uk.ac.open.crc.mdsc.engine.DiskSpellingDictionary
-
Adds another word to the dictionary.
- addWord(String) - Method in class uk.ac.open.crc.mdsc.engine.GenericSpellingDictionary
-
Add a word permanently to the dictionary (and the dictionary file).
- addWord(String) - Method in class uk.ac.open.crc.mdsc.engine.HashedSpellingDictionary
-
Add a word permanently to the dictionary (and the dictionary file).
- addWord(String) - Method in interface uk.ac.open.crc.mdsc.engine.SpellingDictionary
-
Add a word permanently to the dictionary.
- ASpellSpellingDictionary - Class in uk.ac.open.crc.mdsc.engine
-
Container for various methods that any SpellingDictionary will use.
- ASpellSpellingDictionary(File) - Constructor for class uk.ac.open.crc.mdsc.engine.ASpellSpellingDictionary
-
Constructs a new SpellDictionaryASpell
- ASpellSpellingDictionary(File, String) - Constructor for class uk.ac.open.crc.mdsc.engine.ASpellSpellingDictionary
-
Constructs a new SpellDictionaryASpell
- ASpellSpellingDictionary(Reader) - Constructor for class uk.ac.open.crc.mdsc.engine.ASpellSpellingDictionary
-
Constructs a new ASpellSpellingDictionary
- CachedDichotomyDiskSpellingDictionary - Class in uk.ac.open.crc.mdsc.engine
-
Yet another SpellDictionary this one is based on Damien
Guillaume's Diskbased dictionary but adds a cache to try to improve a bit on
performance.
- CachedDichotomyDiskSpellingDictionary(File) - Constructor for class uk.ac.open.crc.mdsc.engine.CachedDichotomyDiskSpellingDictionary
-
Dictionary Convenience Constructor.
- CachedDichotomyDiskSpellingDictionary(File, String) - Constructor for class uk.ac.open.crc.mdsc.engine.CachedDichotomyDiskSpellingDictionary
-
Dictionary Convenience Constructor.
- CachedDichotomyDiskSpellingDictionary(File, File) - Constructor for class uk.ac.open.crc.mdsc.engine.CachedDichotomyDiskSpellingDictionary
-
Dictionary constructor that uses an aspell phonetic file to build the
transformation table.
- CachedDichotomyDiskSpellingDictionary(File, File, String) - Constructor for class uk.ac.open.crc.mdsc.engine.CachedDichotomyDiskSpellingDictionary
-
Dictionary constructor that uses an aspell phonetic file to build the
transformation table.
- checkSpelling(String, int) - Method in class uk.ac.open.crc.mdsc.Dictionary
-
Checks the spelling of a word in this dictionary.
- checkSpelling(String) - Method in class uk.ac.open.crc.mdsc.Dictionary
-
Checks the spelling of a word in this dictionary.
- clearCache() - Method in class uk.ac.open.crc.mdsc.engine.CachedDichotomyDiskSpellingDictionary
-
Clears the cache.
- compare(Word, Word) - Method in class uk.ac.open.crc.mdsc.engine.Word
-
Compares two words, mostly for the purpose of sorting words.
- compareTo(SuggestedSpelling) - Method in class uk.ac.open.crc.mdsc.SuggestedSpelling
-
- Configuration - Class in uk.ac.open.crc.mdsc.engine
-
The various settings used to control how a spell checker works are read from
here.
- Configuration() - Constructor for class uk.ac.open.crc.mdsc.engine.Configuration
-
- cost() - Method in class uk.ac.open.crc.mdsc.SuggestedSpelling
-
The cost of the transformation(s) required to change the
spell checked word to the substitution.
- COST_CHANGE_CASE - Static variable in class uk.ac.open.crc.mdsc.engine.Configuration
-
Used by EditDistance: the cost of having to change case, for example,
from i to I.
- COST_INSERT_CHAR - Static variable in class uk.ac.open.crc.mdsc.engine.Configuration
-
Used by EditDistance: the cost of having to insert a character.
- COST_REMOVE_CHAR - Static variable in class uk.ac.open.crc.mdsc.engine.Configuration
-
Used by EditDistance: the cost of having to remove a character.
- COST_SUBST_CHARS - Static variable in class uk.ac.open.crc.mdsc.engine.Configuration
-
Used by EditDistance: the cost of having to substitute one character for
another.
- COST_SWAP_CHARS - Static variable in class uk.ac.open.crc.mdsc.engine.Configuration
-
Used by EditDistance: the cost of having to swap two adjoining
characters.
- create(String, String, File) - Method in class uk.ac.open.crc.mdsc.DictionaryManager
-
Creates a Dictionary using the supplied word list.
- create(String, String, File, boolean) - Method in class uk.ac.open.crc.mdsc.DictionaryManager
-
Creates a Dictionary using the supplied word list.
- create(String, String, Reader, boolean) - Method in class uk.ac.open.crc.mdsc.DictionaryManager
-
Creates a Dictionary using the supplied word list which can be
in a jar file, on the file system or ….
- createDictionary(BufferedReader) - Method in class uk.ac.open.crc.mdsc.engine.GenericSpellingDictionary
-
Constructs the dictionary from a word list file.
- createDictionary(BufferedReader) - Method in class uk.ac.open.crc.mdsc.engine.HashedSpellingDictionary
-
Constructs the dictionary from a word list file.
- createNormalisedDictionary(BufferedReader) - Method in class uk.ac.open.crc.mdsc.engine.HashedSpellingDictionary
-
Constructs the dictionary from a word list file where all words are
normalised to lower case.
- DefaultDictionaryManager - Class in uk.ac.open.crc.mdsc
-
Provides a default set of dictionaries based on SCOWL word lists to
80, separated by language, the SCOWL 'hacker' dictionary of technical terms
and a dictionary of technical terms derived from identifier names.
- DefaultDictionaryManager() - Constructor for class uk.ac.open.crc.mdsc.DefaultDictionaryManager
-
- description() - Method in class uk.ac.open.crc.mdsc.Dictionary
-
Retrieves the description.
- DichotomyDiskSpellingDictionary - Class in uk.ac.open.crc.mdsc.engine
-
Another implementation of SpellDictionary that doesn't cache any
words in memory.
- DichotomyDiskSpellingDictionary(File) - Constructor for class uk.ac.open.crc.mdsc.engine.DichotomyDiskSpellingDictionary
-
Dictionary convenience Constructor.
- DichotomyDiskSpellingDictionary(File, String) - Constructor for class uk.ac.open.crc.mdsc.engine.DichotomyDiskSpellingDictionary
-
Dictionary convenience Constructor.
- DichotomyDiskSpellingDictionary(File, File) - Constructor for class uk.ac.open.crc.mdsc.engine.DichotomyDiskSpellingDictionary
-
Dictionary constructor that uses an aspell phonetic file to build the
transformation table.
- DichotomyDiskSpellingDictionary(File, File, String) - Constructor for class uk.ac.open.crc.mdsc.engine.DichotomyDiskSpellingDictionary
-
Dictionary constructor that uses an aspell phonetic file to build the
transformation table.
- Dictionary - Class in uk.ac.open.crc.mdsc
-
Represents a single spelling dictionary.
- DictionaryManager - Class in uk.ac.open.crc.mdsc
-
A class used to populate and configure a group of dictionaries.
- DictionaryManager() - Constructor for class uk.ac.open.crc.mdsc.DictionaryManager
-
Creates a DictionaryManager with an empty set of dictionaries.
- dictionaryName() - Method in class uk.ac.open.crc.mdsc.Result
-
The name of the dictionary used.
- dictionaryName() - Method in class uk.ac.open.crc.mdsc.SuggestedSpelling
-
Retrieves the name of the dictionary that supplied the suggested spelling.
- dictionarySet() - Method in class uk.ac.open.crc.mdsc.DictionaryManager
-
Retrieves the current dictionary set.
- DictionarySet - Class in uk.ac.open.crc.mdsc
-
DictionarySet provides the spell checking functionality in
mdsc.
- DiskSpellingDictionary - Class in uk.ac.open.crc.mdsc.engine
-
An implementation of SpellDictionary that doesn't cache any
words in memory.
- DiskSpellingDictionary(File, File) - Constructor for class uk.ac.open.crc.mdsc.engine.DiskSpellingDictionary
-
Construct a spell dictionary on disk.
- DoubleMetaphoneTransformator - Class in uk.ac.open.crc.mdsc.engine
-
A phonetic encoding algorithm that takes an English word and computes a
phonetic version of it.
- DoubleMetaphoneTransformator() - Constructor for class uk.ac.open.crc.mdsc.engine.DoubleMetaphoneTransformator
-
- GenericSpellingDictionary - Class in uk.ac.open.crc.mdsc.engine
-
The SpellDictionary class holds the instance of the dictionary.
- GenericSpellingDictionary(File) - Constructor for class uk.ac.open.crc.mdsc.engine.GenericSpellingDictionary
-
Dictionary constructor that uses the DoubleMetaphone class with the
English alphabet.
- GenericSpellingDictionary(File, File) - Constructor for class uk.ac.open.crc.mdsc.engine.GenericSpellingDictionary
-
Dictionary constructor that uses an aspell phonetic file to build the
transformation table.
- GenericTransformator - Class in uk.ac.open.crc.mdsc.engine
-
A Generic implementation of a transformator takes an
aspell phonetics file and constructs some sort of transformation table
using the inner class TransformationRule.
- GenericTransformator(File) - Constructor for class uk.ac.open.crc.mdsc.engine.GenericTransformator
-
Construct a transformation table from the phonetic file
- GenericTransformator(File, String) - Constructor for class uk.ac.open.crc.mdsc.engine.GenericTransformator
-
Construct a transformation table from the phonetic file
- GenericTransformator(Reader) - Constructor for class uk.ac.open.crc.mdsc.engine.GenericTransformator
-
Construct a transformation table from the phonetic file
- getBoolean(String) - Method in class uk.ac.open.crc.mdsc.engine.Configuration
-
Gets one of the boolean constants
- getBoolean(String) - Method in class uk.ac.open.crc.mdsc.engine.PropertyConfiguration
-
Recovers the boolean value associated with the given key.
- getCodeReplaceList() - Method in class uk.ac.open.crc.mdsc.engine.GenericTransformator
-
Takes out all single character replacements and put them in a char array.
- getConfiguration() - Static method in class uk.ac.open.crc.mdsc.engine.Configuration
-
gets a new default Configuration
- getConfiguration(String) - Static method in class uk.ac.open.crc.mdsc.engine.Configuration
-
Returns a new instance of a configurationClassName class.
- getCost() - Method in class uk.ac.open.crc.mdsc.engine.Word
-
A cost measures how close a match this text was to the original text.
- getDictionaryList() - Method in class uk.ac.open.crc.mdsc.DictionarySet
-
Recovers a list of the dictionaries in this set.
- getInteger(String) - Method in class uk.ac.open.crc.mdsc.engine.Configuration
-
Gets one of the integer constants
- getInteger(String) - Method in class uk.ac.open.crc.mdsc.engine.PropertyConfiguration
-
Retrieves the integer value associated with the given key.
- getPhoneticCode(String) - Method in class uk.ac.open.crc.mdsc.engine.ASpellSpellingDictionary
-
Returns the phonetic code representing the word.
- getReplaceList() - Method in class uk.ac.open.crc.mdsc.engine.DoubleMetaphoneTransformator
-
- getReplaceList() - Method in class uk.ac.open.crc.mdsc.engine.GenericTransformator
-
Builds up an char array with the chars in the alphabet of the language as
it was read from the alphabet tag in the phonetic file.
- getReplaceList() - Method in interface uk.ac.open.crc.mdsc.engine.Transformator
-
gets the list of characters that should be swapped in to the misspelled
word in order to try to find more suggestions.
- getSuggestions(String, int) - Method in class uk.ac.open.crc.mdsc.engine.ASpellSpellingDictionary
-
Returns a list of Word objects that are the suggestions to an incorrect
word.
- getSuggestions(String, int, int[][]) - Method in class uk.ac.open.crc.mdsc.engine.ASpellSpellingDictionary
-
Returns a list of Word objects that are the suggestions to an incorrect
word.
- getSuggestions(String, int) - Method in interface uk.ac.open.crc.mdsc.engine.SpellingDictionary
-
Returns a list of Word objects that are the suggestions to any word.
- getSuggestions(String, int, int[][]) - Method in interface uk.ac.open.crc.mdsc.engine.SpellingDictionary
-
Returns a list of Word objects that are the suggestions to any word.
- getText() - Method in class uk.ac.open.crc.mdsc.engine.Word
-
gets suggested spelling
- getWords(String) - Method in class uk.ac.open.crc.mdsc.engine.ASpellSpellingDictionary
-
Returns a list of words that have the same phonetic code.
- getWords(String) - Method in class uk.ac.open.crc.mdsc.engine.CachedDichotomyDiskSpellingDictionary
-
Returns a list of strings (words) for the code.
- getWords(String) - Method in class uk.ac.open.crc.mdsc.engine.DichotomyDiskSpellingDictionary
-
Returns a list of strings (words) for the code.
- getWords(String) - Method in class uk.ac.open.crc.mdsc.engine.DiskSpellingDictionary
-
Returns a list of words that have the same phonetic code.
- getWords(String) - Method in class uk.ac.open.crc.mdsc.engine.GenericSpellingDictionary
-
Returns a list of strings (words) for the code.
- getWords(String) - Method in class uk.ac.open.crc.mdsc.engine.HashedSpellingDictionary
-
Returns a list of strings (words) for the phonetic code.
- save() - Method in class uk.ac.open.crc.mdsc.engine.PropertyConfiguration
-
Deprecated.
- saveCache() - Method in class uk.ac.open.crc.mdsc.engine.CachedDichotomyDiskSpellingDictionary
-
- setBoolean(String, boolean) - Method in class uk.ac.open.crc.mdsc.engine.Configuration
-
Sets one of the boolean constants
- setBoolean(String, boolean) - Method in class uk.ac.open.crc.mdsc.engine.PropertyConfiguration
-
- setCostThreshold(int) - Method in class uk.ac.open.crc.mdsc.DictionaryManager
-
Sets the maximum cost of any suggested spellings returned by
a dictionary.
- setInteger(String, int) - Method in class uk.ac.open.crc.mdsc.engine.Configuration
-
Sets one of the integer constants
- setInteger(String, int) - Method in class uk.ac.open.crc.mdsc.engine.PropertyConfiguration
-
- setMaximumSuggestions(int) - Method in class uk.ac.open.crc.mdsc.DictionaryManager
-
Sets the maximum number of suggested spellings returned by
a dictionary.
- setText(String) - Method in class uk.ac.open.crc.mdsc.engine.Word
-
Sets suggested spelling.
- SPELL_IGNORE_DIGIT_WORDS - Static variable in class uk.ac.open.crc.mdsc.engine.Configuration
-
words that have digits in them are not spell checked, example: "mach5".
- SPELL_IGNORE_INTERNET_ADDRESSES - Static variable in class uk.ac.open.crc.mdsc.engine.Configuration
-
words that look like an Internet address are not spell checked, example:
"http://www.google.com".
- SPELL_IGNORE_MIXED_CASE - Static variable in class uk.ac.open.crc.mdsc.engine.Configuration
-
words that have mixed case are not spell checked, example:
"SpellChecker".
- SPELL_IGNORE_MULTIPLE_WORDS - Static variable in class uk.ac.open.crc.mdsc.engine.Configuration
-
I don't know what this does.
- SPELL_IGNORE_SENTENCE_CAPITALIZATION - Static variable in class uk.ac.open.crc.mdsc.engine.Configuration
-
The first word of a sentence is expected to start with an upper case
letter.
- SPELL_IGNORE_UPPER_CASE - Static variable in class uk.ac.open.crc.mdsc.engine.Configuration
-
words that are all upper case are not spell checked, example: "CIA".
- SPELL_THRESHOLD - Static variable in class uk.ac.open.crc.mdsc.engine.Configuration
-
The maximum cost of suggested spelling.
- spellCheck(String) - Method in class uk.ac.open.crc.mdsc.DictionarySet
-
Checks the spelling of a single word in multiple dictionaries and reports
whether the word has been identified, and in which dictionary, and
offers suggested alternative spellings for incorrectly spelt words.
- SpellingDictionary - Interface in uk.ac.open.crc.mdsc.engine
-
An interface for all dictionary implementations.
- SuggestedSpelling - Class in uk.ac.open.crc.mdsc
-
A class containing a suggested spelling, the cost of changing the given
word to the candidate spelling and the name of the dictionary used to
identify the suggestion.
- suggestions() - Method in class uk.ac.open.crc.mdsc.Result
-
Retrieves a list of suggested alternative spellings.