Реформа англійської мови#393

Реформа англійської мови

1 секунда
64 мегабайти
Складна

1 квітня 20?? року буде проведено реформу англійської мови, яка дозволить полегшити її вивчення іноземцям та англійським школярам. По-перше, з алфавіту вилучать чотири літери , , і (на клавіатурі комп'ютера замість них будуть клавіші, які запускають програми ord, ecel та інші). Замість перед літерами , , потрібно буде писати літеру , а в інших випадках — літеру . Замість літери потрібно буде писати літеру , замість сполучення — , замість — , а замість — . По-друге, сполучення літер буде записуватись як , та — як , — як , — як . Крім того, усі подвійні приголосні (включаючи утворені після замін), які викликають великі труднощі в учнів, стануть одинарними, наприклад, після реформи потрібно писати як .

У зв'язку з реформою потрібно опрацювати величезну кількість текстів. Напишіть програму, яка виконувала б цю роботу.

Примітка для допитливих

Основою для задачі стали декілька гумористичних нарисів:

The European Union commissioners have announced that English will be adopted as the preferred language for European communications, rather than German. As part of the negotiations, Her Majesty's Government acknowledged that English spelling could be improved and has agreed to a five-year phased plan for what will be known as EuroEnglish (Euro for short).

In the first year, "s" will replace the soft "c". Sertainly, sivil servants will resieve this news with joy. Additionally, the hard "c" will be replaced with "k". This will not only clear up confusion but also allow typewriters to have one less letter.

There will be growing public enthusiasm in the second year when the troublesome "ph" is replaced by "f". This change will make words like "fotograf" 20 percent shorter.

By the third year, public acceptance of the new spelling is expected to reach a level where more complicated changes are possible. Governments will encourage the removal of double letters, which have always been a deterrent to accurate spelling. Also, everyone will agree that the horrible mess of silent "e"s in the language is disgraceful, and they will be removed.

By the fourth year, people will be receptive to changes such as replacing "th" with "z" and "w" with "v". During the fifth year, the unnecessary "o" can be dropped from words containing "ou", and similar changes would of course be applied to other combinations of letters.

After the fifth year, we will have a really sensible written style. There will be no more troubles or difficulties, and everyone will find it easy to understand each other.

The dream will finally come true.

A Plan for the Improvement of English Spelling by M. J. Shields (Mark Twain?)

For example, in Year 1, the useless letter "c" would be dropped and replaced either by "k" or "s," and likewise, "x" would no longer be part of the alphabet. The only case in which "c" would be retained would be the "ch" formation, which will be addressed later. Year 2 might reform "w" spelling, so that "which" and "one" would take the same consonant, while Year 3 might abolish "y", replacing it with "i", and Year 4 might fix the "g / j" anomaly once and for all.

Generally, the improvement would continue year by year, with Year 5 doing away with useless double consonants, and Years 6-12 or so modifying vowels and the remaining voiced and unvoiced consonants. By Year 15 or so, it would finally be possible to make use of the redundant letters "c," "y," and "x"—by now just a memory in the minds of old dodderers—to replace "ch," "sh," and "th" respectively.

Finally, then, after some 20 years of orthographical reform, we would have a logical, coherent spelling in use throughout the English-speaking world.

Вхідні дані

У вхідному файлі міститься текст англійською мовою, без переносів слів. Довжина рядків не перевищує символів.

Вихідні дані

У вихідний файл потрібно вивести той самий текст, але вже такий, що відповідає реформі. Якщо перша літера сполучення, яке замінюється, була великою, то перша літера заміни також повинна бути великою. Друга літера в замінах \textbf{x} \to \textbf{ks}, \textbf{qu} \to \textbf{kv} повинна бути завжди малою.

Приклади

Приклад 1

Loading
Loading