#!/usr/bin/env python # Karl Chen # $Id: speling.py,v 1.1 2003/01/30 02:21:33 quarl Exp $ def read_dictionary(dictionary_file): """Load a dictionary file.""" pass def read_file(file): """Reads a file and returns a string of its contents.""" pass def check_word(word): """Returns true if a word is spelled correctly.""" pass def add_word(word): """Add a word to the dictionary. Input WORD should not already exist in the dictionary. Returns None.""" pass def remove_word(word): """Remove a word from the dictionary. Input WORD should already exist in the dictionary. Returns None.""" pass def check_file(file): """Check a file for mis-spelled words. Input FILE should be the filename. The file is read and text is checked." pass def check_text(text): """Check a block of text for mis-spelled words. Input TEXT is any string. Returns None (user-interactive).""" pass def tokenize_text(text): """Tokenize a block of text into a list of words. Input TEXT is any string. Returns a list of words.""" pass