Top

SpellChecker

Please Register to submit score.
Average Score  9.6
Scores Submitted  9
Date Added  Mar 08, 2008
Last Updated  Mar 22, 2008
Tags  check  checker  cheking  spell  spellcheck  spellchecker  spellchecking  spelling 

Introduction

I made this simple SpellChecker today. It's pretty obvious what it does, it checks if a word is spelled right, and if not, it gives suggestions.

Syntax: [!spellcheck | /spellcheck] [word]

Here's some screens:









Enjoy

Grab the Code

Comments

  (31)  RSS
mountaindew
Comments: 1,422
 
mIRC Snippet:  SpellChecker
Posted on Mar 8, 2008 12:07 pm
Enjoy
jonesy44
Comments: 681
 
mIRC Snippet:  SpellChecker
Posted on Mar 8, 2008 6:49 pm
Hah, Great script idea mountaindew ! good work. I'm wondering if this would work if you could somehow use an on input ?
mountaindew
Comments: 1,422
 
mIRC Snippet:  SpellChecker
Posted on Mar 8, 2008 6:53 pm
Thanks jonesy

If you mean like auto-correcting on input, that wouldn't really be possible, because there's so many suggested words.
dmdifiore
Comments: 8
 
mIRC Snippet:  SpellChecker
Posted on Mar 10, 2008 9:48 am
It would be possible MD. You could have a while loop take all your inputs and break them into toks separated by spaces and not including things like ,/./:/etc... Then have it run a check on each and move to the next word. As it checks the word, it replaces it with $gettok(%sc.corr,1,32) and asks if that is correct using $input with yes/no/cancel. If they click no, it moves to the next suggested word, $gettok(%sc.corr,2,32) (using %x as the gettok number so it increases with the loop) and asks again, continuing until yes is selected and it replaces the tok with the selected suggestion, or cancel and the tok is left alone and the loop continues on.

The only thing thats bad about this is that a search on each word obviously slows things down a lot -_-

I can make a small example of what I mean if you don't understand what I'm saying.
dmdifiore
Comments: 8
 
mIRC Snippet:  SpellChecker
Posted on Mar 10, 2008 9:50 am
And yes I realize how annoying/stupid/slow this would be...but I hate when people say things are impossible.

;)
mountaindew
Comments: 1,422
 
mIRC Snippet:  SpellChecker
Posted on Mar 10, 2008 2:09 pm
I said it wouldn't really be possible to "auto correct" misspelled sentences.
Quote:

If you mean like auto-correcting on input, that wouldn't really be possible, because there's so many suggested words.

It would take forever if I looped through every word I typed, spellcheck that, if wrong, loop through every suggestion that it has, have the user go through each word, and do that for the rest of the sentence. I don't think anyone would want that. And I don't need an example...
Scakk
Comments: 181
 
mIRC Snippet:  SpellChecker
Posted on Mar 10, 2008 3:09 pm
It allows you to look up words without letters at all.

Quote:

[16:02] <Goofy|Around> !spellcheck *
[16:02] * WaiterJohn checks if "4*" is spelled correctly...
[16:02] <WaiterJohn> The word "4*" is spelled 9correctly!


I changed the on text to the below.

Code:

on *:text:!spellcheck *:#:{
  if ($2 !isalpha) { msg $chan Words can only contain letters. | halt }
  else {
    set %sc.chan $chan
    spellcheck $2-
  }
}
Scakk
Comments: 181
 
mIRC Snippet:  SpellChecker
Posted on Mar 10, 2008 3:14 pm
I also added " unset %sc.corr " to the above pasted else statement. Without unsetting it it was keeping all the results and adding the words to each subsequent spell check.
Ivanalicius
Comments: 15
 
mIRC Snippet:  SpellChecker
Posted on Mar 10, 2008 3:37 pm
mountaindew I'm surprised from your scripting ability.
Great work!
mountaindew
Comments: 1,422
 
mIRC Snippet:  SpellChecker
Posted on Mar 10, 2008 3:54 pm
lol Thanks Ivanalicius

UPDATED:

• Checked "if (%sc.word !isalpha)"
• Made it "set %sc.word $strip($1)"
Korvin
Comments: 241
 
mIRC Snippet:  SpellChecker
Posted on Mar 10, 2008 6:28 pm
This is actually quite easy to make, it just took some1 willing to do it =D I HATE sockets, why? i dont know, i just hate spending time on them, but i was planning on making something like this, such as on input, but just changes to the 1st alternate option
mountaindew
Comments: 1,422
 
mIRC Snippet:  SpellChecker
Posted on Mar 10, 2008 6:43 pm
yea it took like 15 minutes to make :D
G13AoUsTiS
Comments: 38
 
mIRC Snippet:  SpellChecker
Posted on Mar 15, 2008 3:28 pm
Code:

alias toke {
  dialog -m core core
  tokenize 32 %sc.corr
  var %x = $numtok(%sc.corr,32)
  did -a core 1 $*
}

 
dialog core {
  title "Correction"
  size -1 -1 103 38
  option dbu
  combo 1, 10 3 85 50, size drop
  button "Correct it!", 2, 32 19 37 12
}

on *:dialog:core:sclick:2: //say $replacex($1-,sc.word,$did(1))


what about this? and add a "/toke %sc.corr" under %sc.msg Sorry, $qt(4 $+ %sc.word $+ ) is spelled 4incorrectly. Here's some suggestions: %sc.corr ???
G13AoUsTiS
Comments: 38
 
mIRC Snippet:  SpellChecker
Posted on Mar 15, 2008 3:29 pm
oups remove var %x = $numtok(%sc.corr,32) for the alias. Sorry My Bad!
ISM
Comments: 22
 
mIRC Snippet:  SpellChecker
Posted on Mar 19, 2008 6:56 pm
why not this script work on pnplus??
ISM
Comments: 22
 
mIRC Snippet:  SpellChecker
Posted on Mar 19, 2008 7:00 pm
nvm got it mountaindew great work done thx...........
mountaindew
Comments: 1,422
 
mIRC Snippet:  SpellChecker
Posted on Mar 19, 2008 7:21 pm
thanks
Eugenio
Comments: 517
 
mIRC Snippet:  SpellChecker
Posted on Mar 19, 2008 7:56 pm
Ivanalicious Said :
Quote:
mountaindew I'm surprised from your scripting ability.
Great work!


LMFAO I am in love with hes scriping ability and if i would hapily get married to it. /me Proposes =/

Love this script mate another strate 10/10
Eugenio
Comments: 517
 
mIRC Snippet:  SpellChecker
Posted on Mar 19, 2008 7:59 pm
.......and I would hapily get married to it..... no "if" :p
bloody typos.
mountaindew
Comments: 1,422
 
mIRC Snippet:  SpellChecker
Posted on Mar 19, 2008 8:09 pm
haha thanks eugenio
ISM
Comments: 22
 
mIRC Snippet:  SpellChecker
Posted on Mar 19, 2008 8:14 pm
to check spell corretly u have to be OP in room mountaindew: THX
mountaindew
Comments: 1,422
 
mIRC Snippet:  SpellChecker
Posted on Mar 19, 2008 8:32 pm
if you wan't ops to use it only, it would be on @*: ...
ISM
Comments: 22
 
mIRC Snippet:  SpellChecker
Posted on Mar 19, 2008 8:37 pm
i know that but i am doing regular channel which i am not op i cant check !spellcheck [word] i tried allredy but not working i am using pnplus
mountaindew
Comments: 1,422
 
mIRC Snippet:  SpellChecker
Posted on Mar 19, 2008 8:45 pm
i dont know what pnplus is, but this doesn't check if you're op :S
Eugenio
Comments: 517
 
mIRC Snippet:  SpellChecker
Posted on Mar 19, 2008 9:34 pm
Np. your so bloody good! all this socket stuff makes me go cross eyed. Your the best scripter ive seen.

btw........I dont have to be op in a room to use this script :s

ISM what the bloody hell is that pnplus thing you keep talking about ?!? mate get mIRC or stick to java rofl.
Lindrian
Comments: 694
 
mIRC Snippet:  SpellChecker
Posted on Mar 19, 2008 9:50 pm
pnp = Peace and protection, a mirc script.
mountaindew
Comments: 1,422
 
mIRC Snippet:  SpellChecker
Posted on Mar 20, 2008 2:07 pm
Sorry F*U*R*B*Y, I accidently deleted your comment while deleting the other random shoot...it was something like:
Quote:

i haven't tried it but what about color and colour? what happens then?

Well, this is an American spellchecker I guess, and if you try "colour", it returns:
Quote:

Checking if "colour" is spelled correctly...
Sorry, "colour" is spelled incorrectly. Here's some suggestions: co lour color colors colored colorer colon Colorado collogue colorant coloreds colorers colorful coloring colorism colorist
ShAmPi
Comments: 11
 
mIRC Snippet:  SpellChecker
Posted on Mar 22, 2008 11:28 am
Erm I had to add a unset.
Because it kept memorizing the old suggestions

Code:
    if (*</BLOCKQUOTE>* iswm %x) {
      unset %sc.wrong
      %sc.msg Sorry, $qt(4 $+ %sc.word $+ ) is spelled 4incorrectly. Here's some suggestions: %sc.corr
      sockclose $sockname
      unset %sc.corr
    }


Neat script btw ;)
mountaindew
Comments: 1,422
 
mIRC Snippet:  SpellChecker
Posted on Mar 22, 2008 12:01 pm
Sorry bout that

I added a "unset %sc.*" in there, so it should work now.
Tsuiseki
Comments: 5
 
mIRC Snippet:  SpellChecker
Posted on Mar 22, 2008 12:07 pm
Nice script, I hadn't realized one has been posted before. The only thing you could remove in this is the if event checking 2+ words. Since in your on text event you use $2-; why not just use $2 and ignore the rest of the input? Great job! You might also remove those halts and use elseif's!

~Tsuiseki
AdrianF
Comments: 35
 
mIRC Snippet:  SpellChecker
Posted on Jun 30, 2008 3:02 pm
Nice Script

Please Register or Login to start posting comments.
Bottom