Skip to content

Instantly share code, notes, and snippets.

View pepkin88's full-sized avatar

Marek Pepke pepkin88

View GitHub Profile
@pepkin88
pepkin88 / spell.ls
Last active February 6, 2018 15:30
LiveScript version of Peter's Norvig `spell.py`
### Preface ###
# This is a translation to LiveScript of Peter's Norvig script
# for correcting the misspelled words: http://norvig.com/spell-correct.html
# I was trying to minimize the line count, while preserving a relative readability.
# The variable names are analogous to those in the original snippet, as of 2018-02-06.
# All of the code works in LiveScript v1.5.
# Copyright (c) 2018 Marek Pepke
# MIT license: www.opensource.org/licenses/mit-license.php