Author Topic: How would I change 1 word to another word?  (Read 823 times)

I want to create a translator, if it's already been done I don't care. I'm going to do it for myself, or if it's good and there's no errors i'll release it.

Either way, I want to know how I can change one word in one language to the other word in the selected language via chat. For instance:

Instead of
vezu: jaja

it would become
vezu: haha

How would I do this without having to input an entire dictionary of words? Do not give me the full code, I just need to know what it is that can change chat or put in a long list of words to be changed into another list of words when typed into chat.

How would I do this without having to input an entire dictionary of words?
Only other way I can think of besides that is to use a TCP object to send it to some website and then get the output back.

Only other way I can think of besides that is to use a TCP object to send it to some website and then get the output back.
How can I do this?

How can I do this?
i'd say find a good website that has an open API support for applications/add-ons and that should help you also, using tcp objects is the best bet

setWord(%string,%index,%replaced);

for(%i=0;%I<getWordCount(%string);%i++)
    if(getWord(%string,%i)$="jaja")
        %string=setWord(%string,%i,"Haha");

setWord(%string,%index,%replaced);

for(%i=0;%I<getWordCount(%string);%i++)
    if(getWord(%string,%i)$="jaja")
        %string=setWord(%string,%i,"Haha");

Sure, except he wants to make a full translator and this is only an example

But yeah what Darren said is best

Sure, except he wants to make a full translator and this is only an example

But yeah what Darren said is best
I'm being stupid and I need an example of a website that fits what he posted.

Sure, except he wants to make a full translator and this is only an example

But yeah what Darren said is best
title got me confused...

I'm being stupid and I need an example of a website that fits what he posted.
Like these? They might not have a public API though.
http://translate.google.com
http://translate.bing.com

Like these? They might not have a public API though.
http://translate.google.com
http://translate.bing.com
They do, but I know Google's costs money.
I don't know about Bing though