I don’t need useful translation. I need a way to randomize the words across different languages within the same sentence like a noise source where the basic grammatical structure is English but the words are many languages. I need to ensure the translated words are not in a list, then display the rest as a pull down menu or just code to swap the first option.
I was thinking about using the Wiktionary data dump, but if anyone knows a better option, I’d love to hear it.
Support question. Locking.
I’m confused at what you’re wanting exactly, particularly the second part. Are you trying to turn a sentence into many languages at once, like “The red car is quick” to “The rojo 車 est schnell”? Just trying to understand the ‘not in a list’ and ‘pull down menu or (…) swap the first option’ part.
It’s gonna be especially difficult since languages rarely have a perfect one to one translation
Not at all since OP says the translated sentence doesn’t have to make sense. They seem to be asking to use several translation dictionaries to make some sort of weak replacement cypher. It’s doable in like 50-100 lines of python (I haven’t looked into the libraries needed, I just know they exist).
I have no idea about the second part, though.
Depending on the use case, that may be a benefit. I’m just trying to figure out what that use case would be.
Sometimes I want words with special letters or without others. Or I may want to try various combinations of words.
Isn’t that basically just a cypher? Shouldn’t be too hard to do in Python or something.
There’s several python libraries out there for translation, so all you’d need to do is build an array of languages, split the sentence into an array, then write a function to take a word, randomly generate a number for the language index, then call the translation library to translate the word. Then iterate through the sentence array, calling the function, then concat the array back into a string.
As to the second part about lists and drop downs, it seems like you’re skipping over some needed context about what you’re trying to accomplish with your random language sentences.




