Interesting but highly sophisticated. Most probably you would need not just a syntactic analysis (how the words are strung together) of the input sentence(s) but a semantic one (the meanings of the words) as well.

The parser has to "understand" the following partial realisations of the original first sentence:

With a population of more than 10.2 million, Seoul, the capital of South Korea, is the world’s largest city in terms of population.
1) Seoul, the capital of South Korea, is the world’s largest city in terms of population with a population of more than 10.2 million.

2) The capital of South Korea, Seoul, is the world’s largest city in terms of population with a population of more than 10.2 million.

3) With a population of more than 10.2 million, the capital of South Korea, Seoul, is the world’s largest city in terms of population.

4) In terms of population, Seoul, the capital of South Korea, is the world’s largest city with a population of more than 10.2 million.

Update

I think the first task of any parser is to recognise that the original first sentence (or its transformed counterparts) has the following constituents:

{With a population of more than 10.2 million}pp, {Seoul}np, {the capital of South Korea}np, {is the world’s largest city}vp {in terms of population}pp.

where

pp->prepositional phrase

np->noun phrase

vp->verb phrase

With some embeddings of constituents:

{With a population {of more than 10.2 million}pp}pp

{the capital {of South Korea}pp}np


In reply to Re: The (futile?) quest for an automatic paraphrase engine by kiat
in thread The (futile?) quest for an automatic paraphrase engine by dimar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.