forked from GitHub/dbot
module documentation for spelling [#75]
This commit is contained in:
parent
2e1de98df9
commit
2416a82f45
21
README.md
21
README.md
@ -25,24 +25,3 @@ commands in the cloned repository:
|
||||
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
||||
## Modules:
|
||||
|
||||
### Spelling
|
||||
|
||||
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.
|
||||
|
22
modules/spelling/README.md
Normal file
22
modules/spelling/README.md
Normal file
@ -0,0 +1,22 @@
|
||||
## 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.
|
Loading…
Reference in New Issue
Block a user