C D F G H I L M N R S T 

C

checkDocument(Reader, InputStream, Writer) - Method in class SpellChecker
Interactively spell checks a given document.
Corrector - Class in <Unnamed>
Skeleton implementation for classes capable of providing spelling corrections.
Corrector() - Constructor for class Corrector
 

D

Dictionary - Class in <Unnamed>
A dictionary manages a collection of known, correctly-spelled words.
Dictionary(TokenScanner) - Constructor for class Dictionary
Constructs a Dictionary from words provided by a TokenScanner.

F

FileCorrector - Class in <Unnamed>
A Corrector whose spelling suggestions are given in a text file.
FileCorrector(Reader) - Constructor for class FileCorrector
Constructs a FileCorrector from the argued Reader.
FileCorrector.FormatException - Exception in <Unnamed>
A special purpose exception class to indicate errors when reading the input for the FileCorrector.
FileCorrector.FormatException(String) - Constructor for exception FileCorrector.FormatException
 

G

getCorrections(String) - Method in class Corrector
Returns a set of proposed corrections for an incorrectly spelled word.
getCorrections(String) - Method in class FileCorrector
Returns a set of proposed corrections for an incorrectly spelled word.
getCorrections(String) - Method in class Levenshtein
Returns a set of proposed corrections for an incorrectly spelled word.
getCorrections(String) - Method in class SwapCorrector
Suggests as corrections any words in the Dictionary (provided when this object is constructed) that are one swap away from the input word.
getDeletions(String) - Method in class Levenshtein
A deletion is defined as a removing a single character.
getInsertions(String) - Method in class Levenshtein
An insertion is defined as inserting a single character.
getNumWords() - Method in class Dictionary
Returns the number of unique words in this Dictionary.
getSubstitutions(String) - Method in class Levenshtein
A substitution is defined as replacing a single character with another.

H

hasNext() - Method in class TokenScanner
Determines whether there is another token available.

I

isWord(String) - Method in class Dictionary
Tests whether the argued word is present in this Dictionary.
isWord(String) - Static method in class TokenScanner
Determines whether the argued String is a valid word
isWordCharacter(int) - Static method in class TokenScanner
Determines whether the argued character is a valid word character.

L

Levenshtein - Class in <Unnamed>
A smart Corrector that uses "edit distance" to generate corrections.
Levenshtein(Dictionary) - Constructor for class Levenshtein
Constructs a Levenshtein Corrector using the argued Dictionary.

M

main(String[]) - Static method in class SpellCheckerRunner
This main program creates appropriate Reader and Writer objects for doing File IO, creates the appropriate Corrector based on the command-line arguments, and then uses a SpellChecker to interactively check the input file.
make(String) - Static method in class Dictionary
Constructs a Dictionary from words from a file.
make(String) - Static method in class FileCorrector
Constructs a FileCorrecotr from a file.
matchCase(String, Set<String>) - Method in class Corrector
Returns a new set that contains the same words as the argued set but with the case matching that of the argued misspelled word (either all lowercase or first letter uppercase).

N

next() - Method in class TokenScanner
Returns the next token, or throws a NoSuchElementException if none remain.

R

remove() - Method in class TokenScanner
We don't support this functionality with TokenScanner, but since the method is required when implementing Iterator, we just throw new UnsupportedOperationException();

S

SpellChecker - Class in <Unnamed>
A SpellChecker uses a Dictionary, a Corrector, and I/O to interactively spell check an input stream.
SpellChecker(Corrector, Dictionary) - Constructor for class SpellChecker
Constructs a SpellChecker
SpellCheckerRunner - Class in <Unnamed>
The main entry point for the SpellChecker program.
SpellCheckerRunner() - Constructor for class SpellCheckerRunner
 
SwapCorrector - Class in <Unnamed>
A Corrector whose spelling suggestions come from "swapped letter" typos.
SwapCorrector(Dictionary) - Constructor for class SwapCorrector
Constructs a SwapCorrector using the argued Dictionary.

T

TokenScanner - Class in <Unnamed>
Provides a token Iterator for a given Reader.
TokenScanner(Reader) - Constructor for class TokenScanner
Creates a TokenScanner for the argued Reader.
C D F G H I L M N R S T