Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Peter Norvig's Spelling Corrector in 21 Lines of Coffeescript

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 libjs
Octocat-spinner-32 python
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 coffeecompiler.rb
Octocat-spinner-32 compileall.rb
README.md

Coffeescript-Spelling-Corrector

Compiling the Coffeescript Files

You can do it normally using nodejs and coffee, but there are a couple of rake tasks to make it easy to run:

  • compile: Just compiles all files.
  • compile_watch: Runs and starts the compileall.rb watchr script to continuously compile updated files. Obviously, requires watchr gem
  • force_compile: like compile_watch, but will force compile of all files regardless of date.

Running Tests

Just use the default rake task. Or rake spec.

Running

Using coffee command line:

$ coffee lib/spellCheck.coffee

More Info

More about it here.

Meta

Created by Daniel Ribeiro.

Released under the MIT License: http://www.opensource.org/licenses/mit-license.php

https://github.com/danielribeiro/Coffeescript-Spelling-Corrector

Something went wrong with that request. Please try again.