Use web machine translation engines for text fun (skripting needed)
completed by: Namanyay
mentors: rebentisch
Write a skript that takes a text file with a poem *), then uses a web machine translation engine like the one from yandex or google translate to translate it to multiple languages and finally back to the originating language.
For instance:
English to Korean, from Korean to French, from French to Russian, From Russian to Italian, From Italian to Chinese, from Chinese to English.
The output should contain:
1. Original Poem (*)
2. The translation path (EN-KR, KR-FR,...) you applied
3. The resulting altered poem.
(*) for instance:
A Dream Within A Dream by Edgar Allan Poe
Take this kiss upon the brow!
And, in parting from you now,
Thus much let me avow--
You are not wrong, who deem
That my days have been a dream;
Yet if hope has flown away
In a night, or in a day,
In a vision, or in none,
Is it therefore the less gone?
All that we see or seem
Is but a dream within a dream.
I stand amid the roar
Of a surf-tormented shore,
And I hold within my hand
Grains of the golden sand--
How few! yet how they creep
Through my fingers to the deep,
While I weep--while I weep!
O God! can I not grasp
Them with a tighter clasp?
O God! can I not save
One from the pitiless wave?
Is all that we see or seem
But a dream within a dream?
Resulting altered Poem:
(English to Korean, from Korean to French, from French to Russian, From Russian to Italian, From Italian to Chinese, from Chinese to English.)
It's a kiss on the forehead!
And, from that time onwards parting,
So let me avow--
Who do you think should not be confused
This is my dream job;
But there is hope, if you fly
Day or night,
To view or not,
Therefore, less gone?
Or see all
My dream is just a dream.
I growl
Surf Coast, pain
And I held in my hand.
Golden Grain sand--
How few! However, as Scorrano
Through my fingers deep,
When I cry - ragged time!
Oh my God! I do not understand
They rigorous cycle?
Oh my God! I can not save
Relentless tide?
This is everything that we see or
But in a dream a dream?