Word transposition apps
Thread poster: Sarai Pahla (MD) MBChB

Sarai Pahla (MD) MBChB
Germany
Local time: 05:25
Member (2012)
Japanese to English
+ ...
Sep 11, 2013

I received a rather interesting request from a non-linguist, asking me whether there are any apps available that will change the word order of English sentences (I assume that it should introduce minimal grammatical errors, if that is at all possible).

Does such a thing exist? Could anyone point me in the right direction?


Direct link Reply with quote
 

neilmac  Identity Verified
Spain
Local time: 05:25
Spanish to English
+ ...
Don't know, but Sep 11, 2013

I assume it would be relatively easy to write a program to do this, at least on a basic level. For example, "Internet Anagram Server" (http://www.wordsmith.org/anagram/) rearranges names into several different orders, and I suppose a similar program could be extended to whole sentences.

However, what I'd find more intesting would be to know what prompted the query in the first place.


Direct link Reply with quote
 

Sarai Pahla (MD) MBChB
Germany
Local time: 05:25
Member (2012)
Japanese to English
+ ...
TOPIC STARTER
I'll ask! Sep 11, 2013

neilmac wrote:

However, what I'd find more intesting would be to know what prompted the query in the first place.


Thanks for your suggestion! I will pass it on. I will ask about that in more detail tomorrow - the person was in a bit of a hurry today, so I couldn't ask, but I'm also rather curious...


Direct link Reply with quote
 

Jessica Noyes  Identity Verified
United States
Local time: 23:25
Spanish to English
+ ...
ESL? Sep 12, 2013

Maybe she is an ESL teacher trying to generate some scrambled sentences for her students to reassemble.

Direct link Reply with quote
 

Meta Arkadia
Local time: 10:25
English to Indonesian
+ ...
Regular Expressions Sep 12, 2013

[Jessica, you could very well be right]

You should be able to do that with regular expressions. I'm an absolute regex beginner (started to study it yesterday), but minutes after reading Sarai's post, I came across the following:

Rearranging Name Lists
You can use grep patterns to transform a list of names in first name first form to last name first order (for a later sorting, for instance). Assume that the names are in the form:
Junior X. Potter
Jill Safai
Dylan Schuyler Goode
Walter Wang
If you use this search pattern:
^(.*) ([^ ]+)$
And this replacement string:
\2, \1
The transformed list becomes:
Potter, Junior X.
Safai, Jill
Goode, Dylan Schuyler
Wang, Walter
*

I suppose this could be the starting point of rearranging whole sentences.

*Taken from the TextWrangler User Manual. I can upload it if you want. I can't write the regex yet, though.

Cheers,

Hans


Direct link Reply with quote
 

Meta Arkadia
Local time: 10:25
English to Indonesian
+ ...
Much easier Sep 13, 2013

- select the sentence
- replace all spaces by returns
- convert text to table
- sort alphabetically
- convert table to text
- replace all returns by spaces

You now have the sentence with the words in alphabetical order (so not a random order, but that doesn't really matter, does it?).
I think I can automate that, but only for Mac. Shouldn't be difficult for Windows (a bunch of macros, I suppose?).

Cheers,

Hans (still thinking…)


Direct link Reply with quote
 

Sarai Pahla (MD) MBChB
Germany
Local time: 05:25
Member (2012)
Japanese to English
+ ...
TOPIC STARTER
Thanks! Sep 13, 2013

Hi all,

Thanks for your responses - I have shared the link to this thread to allow the person who asked me the question to see it, but I haven't yet got a response to the question why they wanted the app in the first place. The person is not an ESL teacher though, but works for a consulting firm... so I really have no idea!icon_smile.gif

RegEx sounds like a pretty good idea in my opinion - thanks Meta Arkadia for that. It's a bit hard to determine how it would work without knowing the source data sets, but hey, I'll wait to hear what they say and keep you guys posted if necessary.


Direct link Reply with quote
 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Word transposition apps

Advanced search






TM-Town
Manage your TMs and Terms ... and boost your translation business

Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.

More info »
SDL Trados Studio 2017 only €495 / $595
Get the cheapest prices for SDL Trados Studio 2017 on ProZ.com

Join this translator’s group buy brought to you by ProZ.com and buy SDL Trados Studio 2017 Freelance for only €495 / $595 / £425 / ¥70,000 You will also receive FREE access to Studio 2019 when released.

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search