![]() |
Something that should be added.
A automatic internet type translator
so all those single letter "words" are made into the real words, I get so annoyed when I see this bullcrap. I pretty much want to kill the person(s) who came up with this crap. |
Graal Bomy Moon made something like that, where curse words are replaced, and for example, plz becomes please, etc.
|
I don't think it could be done with things such as "u" cause if someone were to say a word with the letter "u" in it, it would translate the individual letter into the word "you."
Example: Mush = Myoush Unless of course they do something like (I suck at scripting but you get the idea) string = 1 character if input = "u" print "you" or a much longer versian if that's not possible like if input = "u" then print "you" else input = "mush" print "mush" *Repeat with every word that has the letter "u" in it* |
Quote:
By the way, GScript isn't BASIC or whatever variant you are using :p NPC Code: That should replace the 'u' with you. Although my method to reconstruct the original chat text could be better. I'm just not sure how to. |
G_Yoshi, your method is horrible. Better version (untested but still way better):
NPC Code: Nesting event blocks is stupidstupidstupid. |
Or better, " u " (note the spaces) in the censor with its replacement listed as " you "
*adds* EDIT: Well, at least on newmain or any other server with a censor. ANOTHER EDIT: Ah, I need to add a tokenize thing because strequals didn't take my thoughts right. ONE LAST EDIT: Kai, I took advantage of your code, but with one modification. The spaces should be #K(160) or they won't show up in the output |
Quote:
|
If I were to make a real version then I'd include the ability to check for words in words. It'd take a list of word replacements with a boolean parameter for each which specified whether or not to respond to it if the string is part of another word. For 'u' we wouldn't do anything, but for 'spoon' (use your imagination) we would.
|
Tokenize = cleaner than " u ":
u sawk - tokenizes to You suck u sawk - " u " not found If you wanna do the indexof( u ,#c), better to make it the indexof( u , #c ) with spaces on either end. |
Quote:
|
it would take forever becuase people would just make up new ones x_x
P1Z ples plez p1ez ect. ;x |
Badbadgeno.
But that aside, the tokenizing system didn't work because it removed all quotation marks. But I am able to remove things like the corruptions of "please" that look like "pulls." |
I have an easier solution.
BAN THE *****S WHO ARE TOO DAMN LAZY TO TYPE THE TWO EXTRA LETTERS. :D |
u suxors m@n w3 n33d to t@lk like dis. It @in't u prob.
Ok ok, just kidding. A script to convert known "words" to the appropriate word can be made. One to keep up with new "words" on it's own... Unlikely. Since there are so many varients to each words it might not do much good to make one. |
| All times are GMT +2. The time now is 08:42 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.