I was looking around for free translation engines.
Google Translate offers x amount for free, but then you have to pay for extra, so it wasn't really a candidate.
I heard of something called Apertium, which is basically Machine Translation - using Language Pairs / Key lookups.
I wrote a wrapper for this in Java, currently calling the online free API.
I can then expose this to nwscript.
String spanish = Apertium.getTranslation("eng", "spa","Hello my name is Samuel");
Sending 'GET' request to URL : https://www.apertium... name is SamuelResponse Code : 200{"responseDetails": null, "responseData": {"translatedText": "Hola Mi nombre es Samuel"}, "responseStatus": 200}
echo "Hello my name is Jonathan" | apertium en-es
Hola Mi nombre es Jonathan
echo "Hello my name is Jonathan, Can I join your party, I am a level 33 sorcerer" | apertium en-esHola Mi nombre es Jonathan , Puede uno vuestro partido, soy un nivel 33 *sorcererecho "The boss cannot be killed by conventional weapons, you must bless your weapon with holy magic, otherwise the boss will heal every time you strike him." | apertium en-esEl jefe no puede ser matado por armas convencionales, tienes que bendecir vuestra arma con magia santa, *otherwise el jefe se curará cada vez le golpeas.echo "You take the dragon on the left, I will take the Demons on the right. Let me know if you need potions, I have many." | apertium en-esTomas el dragón en el izquierdo, tomaré los Demonios en el correctos. Dejado me saber si necesitas pociones, tengo muchos.
echo "Tomas el dragón en el izquierdo" | apertium es-enYou take the dragon in the left





Retour en haut






