• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Translation dictionary API?

brikis98

Diamond Member
I'm trying to find an API or anything that I can query programmatically that, given a word in one language, gives me all the possible translations for that word in another language. For example, the English word "trunk" has many translations in Russian - there's one word for an elephant's trunk, another for a car trunk, another for the suitcase variety, and so on.

Anyone know of any such API? The only thing I've seen so far are the straight up translators (google, babelfish, and dozens of others) but these all just give you one guess at the translation, where as I'd like to see all possibilities.

As Crusty explained consicely below:

Translater english;
string[]results = english.toSpanish("Hello");

Note how the results are in an array, meaning for one word in english, we can get back multiple translations in spanish.
 
I guess I wasn't able to comprehend your first post. But here is my take on it: I don't know of any API that will *do* translation for you on-the-fly. If you have the ability to access a database, you could easily create a relational structure that will represent your translation dataset. Beyond that, higher level languages like C# and JAVA have great data structures that allow you to manipulate "dictionary-type" data. If you go down this path (using C# or JAVA), you can have an XML document that will hold the translation values for you.

At a deeper level, if you have .NET, you can always play around with "culture" related API's. But I am not sure if they will be accurate for "open-ended" translations. I have never used culture API's within the JAVA realm, so can't comment on that.

Hope this helps. I wonder what others with a deeper understanding of the subject might do. Sounds like an interesting "side project."
 
I'm pretty sure the OP is looking for a library to do the translations for him.. ie something like

Translater english;
string[]results = english.toSpanish("Hello");


 
Originally posted by: Crusty
I'm pretty sure the OP is looking for a library to do the translations for him.. ie something like

Translater english;
string[]results = english.toSpanish("Hello");

yup, this is basically what i'm looking for. the key is the result of the translation of ONE word is MULTIPLE words in the other language.
 
Back
Top