Author Topic: Give me a bunch of misspelled possibilities of popular words  (Read 3424 times)

Pneumonoultramicroscopicsilacovolcanoconiosis instead of pneumonoultramicroscopisilicovolcanoconiosis.
did i solve the unsolvable

Well, you can always use Word's autocorrect menu for ideas:

You can like search for a list of it written out I guess.
« Last Edit: August 10, 2013, 11:33:06 PM by 300spartan »

If you guys are wondering, here is my example script

Code: [Select]
//Grammar national socialist!

package grammar
{
   function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
   {

      parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
      if (!name $= "Johnny Blockhead")
      {
         switch$(%msg) //let's add the switch now
         {
            case "lel":
            commandToServer('messagesent',"JSys²: Don't ya mean lol?");

            case "jsut":
            commandToServer('messagesent',"JSys²: Don't ya mean just?");
            

         }
      }
   }

};


Nucklear
I do this all the damn time.

Just do something like this.

Code: [Select]
$national socialistBot_Replace["lel"] = "lol";
$national socialistBot_Replace["jsut"] = "just";
package grammar
{
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
{
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if (!%name $= "Johnny Blockhead")
{
if($national socialistBot_Replace[%msg] !$= "")
{
commandToServer('messagesent',"JSys²: Don't ya mean " @ $national socialistBot_Replace[%msg] @ "?");
}
}
}

};

Floccinaucinihilipilification .

I don't understand why people would misspell that...

WIAT instead of wait
happens when im in a rush

i find it easier to do something like this

> Make a seperate file called words.txt
> Make it line by line, first word is the misspelled word, second is the correct one

Code: (words.txt example) [Select]
wodrs words
jsut just
lel lol

then add this function into your code

Code: (Function gets words from words.txt) [Select]

function findWord(%word) {
 %file = new FileObject();
 %file.openForRead("./words.txt");
 while(!%file.isEOF()) {
  %line = %file.readLine();
  if(getWord(%line,0) $= %word) {
   %found = %line;
   break;
  }
 }
 if(%found !$= "") {
  return getWord(%found,1);
 } else {
  return 0;
 }
 %file.close();
 %file.delete();
}

what it does is, you call the function while giving it the argument of a misspelled word, like jsut, npoe, lel, and it looks through the file to find a matching misspelled word. if it finds one, it returns the correct spelled word, and if it doesn't, it returns false

that's just a quick mockup if you find any errors tell me
« Last Edit: August 11, 2013, 12:17:21 AM by PurpleMetro »

Grammar? You mean spelling? Which is not grammar? What kind of grammar national socialist are you?

Breadfish = Beardflesh
what = wtat
hello = hlelo
grammer = garmmer
noob = Nobo or nob
badspot = baldspot
ephialtes = eliptats


A lot of the time people try to type "yeah" on Skype or something and end up typing "yeha"

A lot of the time people try to type "yeah" on Skype or something and end up typing "yeha"


change hell to heck to make sure there aren't any potty mouths