3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-29 14:12:40 +01:00
dbot/modules/spelling
2013-06-01 17:57:07 +00:00
..
config.json Build help link automatically [#439] 2013-05-17 07:34:25 +00:00
README.md module documentation for spelling [#75] 2012-12-30 19:50:22 +00:00
spelling.js Remove ^A from ctcp actions 2013-03-28 21:20:41 +00:00
strings.json German translations 2013-06-01 16:16:24 +00:00

Spelling

Fix your spelling.

Description

Will attempt to correct a users spelling by using the levenshtein distance algorithm. One corrects the spelling of their previous message by simply posting a message with their correction and an asterisk:

> user: I am a tutrle.
> user: *turtle
user meant: I am a turtle.

The regular expression for this module also accepts two asterisks at the beginning of the correction, or at the end; it also accepts several words as the correction and deals with these fairly intelligently. Users may also attempt to correct another users like so:

> userone: I am a tutrle.
> usertwo: userone: *turtle
> usertwo thinks userone meant: I am a turtle.