github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

past / speller

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 3
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • gh-pages
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A spell-checker written in JavaScript — Read more

  cancel

http://past.github.com/speller/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Use a relative reference to the training file in order to work outside the 
bin directory. 
past (author)
Tue Aug 25 02:22:24 -0700 2009
commit  b63886da2afb846f47af390b01912743ac5c578e
tree    0cf824cc17d7118a7eef83f4b015ef9c23375db9
parent  f1a18874ca2d540a13a3fac6796d22895e757ab1
speller /
name age
history
message
file README.md Mon Aug 24 15:37:17 -0700 2009 Use a tusk-compliant directory structure. [past]
directory bin/ Tue Aug 25 02:22:24 -0700 2009 Use a relative reference to the training file i... [past]
directory demo/ Mon Aug 24 15:37:17 -0700 2009 Use a tusk-compliant directory structure. [past]
directory lib/ Mon Aug 24 15:37:17 -0700 2009 Use a tusk-compliant directory structure. [past]
file package.json Mon Aug 24 15:37:17 -0700 2009 Use a tusk-compliant directory structure. [past]
directory tests/ Tue Aug 25 02:22:24 -0700 2009 Use a relative reference to the training file i... [past]
README.md

Speller

This is a JavaScript implementation of Peter Norvig's statistical spell-checking algorithm. You can read more about the approach in the original article:

http://norvig.com/spell-correct.html

The code is ServerJS-compliant, so it can be used both inside and outside of a web browser. For the latter case there are a couple of command-line scripts demonstrating its use that depend on narwhal. Alternatively, you can see the code in action right inside your browser in the following page:

http://past.github.com/speller/

Contents

  • lib/speller.js is the spell-checker implementation
  • demo/speller.html is an HTML file that shows how to use speller.js (you can try it here)
  • bin/spellcheck is a Unix/Linux shell script, that depends on narwhal and shows how to use speller.js outside the browser
  • bin/big.txt is Peter Norvig's original training file, with about a million words
  • tests/spelltest.js is a ServerJS-compliant test suite, that uses Norvig's original test cases
  • tests/test is a Unix/Linux shell script, that depends on narwhal and runs the tests in spelltest.js
  • demo/worker.js is a Web Worker that allows the tests in spelltest.js to run inside a browser

License

Copyright (c) 2009 Panagiotis Astithas

Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server