spelling-suggest 0.5.1 → 0.5.1.0
raw patch · 4 files changed
+22/−27 lines, 4 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Paths_spelling_suggest: getBinDir, getLibexecDir, getDataDir, getLibDir :: IO FilePath
- Paths_spelling_suggest: getDataFileName :: FilePath -> IO FilePath
- Paths_spelling_suggest: version :: Version
Files
- README +3/−1
- Text/SpellingSuggest/PCDB.hs +2/−2
- spelling-suggest.cabal +16/−23
- thimk.hs +1/−1
README view
@@ -1,10 +1,12 @@ Spelling word suggestion tool-Copyright © 2008 Bart Massey+Copyright © 2010 Bart Massey and Greg Weber ALL RIGHTS RESERVED This software is licensed under the "3-clause ('new') BSD License". Please see the file COPYING provided with this distribution for license terms.++This package is a newer version of the original package called "thimk". "thimk" (an old joke) is a command-line spelling word suggestion tool. You give it a possibly-misspelled word,
Text/SpellingSuggest/PCDB.hs view
@@ -15,11 +15,11 @@ import Text.PhoneticCode.Soundex import Text.PhoneticCode.Phonix -import Paths_spelling_suggest;+-- import Paths_spelling_suggest; -- | File path for default cache database. defaultDB :: IO String-defaultDB = getDataFileName "spelling-suggest.sq3"+defaultDB = return "spelling-suggest.sq3" -- | Create and populate the phonetic codes database, given -- a list of words and a database path.
spelling-suggest.cabal view
@@ -1,30 +1,32 @@ name: spelling-suggest-version: 0.5.1-cabal-version: >= 1.6+version: 0.5.1.0+cabal-version: >= 1.2 build-type: Simple license: BSD3 license-file: COPYING-copyright: Copyright © 2010 Greg Weber and Bart Massey-author: Greg Weber and Bart Massey+copyright: Copyright © 2010 Bart Massey and Greg Weber+author: Bart Massey and Greg Weber maintainer: bart@cs.pdx.edu, greg@gregweber.info-homepage: https://github.com/BartMassey/haskell-spell-suggest+homepage: http://wiki.cs.pdx.edu/bartforge/thimk category: Console, Text data-files: README, README.pcdb synopsis: Spelling suggestion tool with library and command-line interfaces. description: - "thimk" (an old joke) is a command-line spelling word- suggestion tool. You give it a possibly-misspelled word,- and it spits out one or more properly-spelled words in order+ Given a possibly-misspelled word,+ this tool spits out one or more properly-spelled words in order of likelihood of similarity. .- This functionality is also exported as a library via- Text.SpellingSuggest (suggest)+ This functionality is exported as a library via+ Text.SpellingSuggest (suggest) and as+ a command-line program "thimk" (an old joke) .- There is an optional precompiled SQlite database of phonetic- codes for the entire dictionary, created with- "thimk-makedb". This greatly speeds lookup, permitting- reasonable performance on enormous dictionaries.+ Running the program "thimk-makedb" is an optional (but highly recommended)+ step to speed up lookups,+ permitting reasonable performance on enormous dictionaries+ by creating a+ precompiled SQlite database of phonetic+ codes for a dictionary. flag debug @@ -56,12 +58,3 @@ ghc-options: -Wall if flag(debug) cpp-options: -DDEBUG--Source-repository head- type: git- location: git://github.com/BartMassey/haskell-spell-suggest.git--Source-repository this- type: git- location: git://github.com/BartMassey/haskell-spell-suggest.git- tag: v0.5.1
thimk.hs view
@@ -22,7 +22,7 @@ -- Go ahead and get the dictionary opened up. let dictPath = getArg av ArgDict let dbPath = getArg av ArgDB- dict <- openDictionary dictPath dbPath+ dict <- openDictionary dbPath dictPath -- Construct the search params. let prefilter = prefilterate av $ dictionaryIsDB dict let coder =