Um absoluto

Dada uma frase, crie uma função que substitua cada ocorrência do artigo "a" pela locução verbal "an absolute". Ela deve retornar a mesma string sem nenhuma alteração se não houver nenhum artigo "a" presente.

Exemplos

absolute("Truly, a heart that beats for no one but for Tesh.") ➞ "Truly, an absolute heart that beats for no one but for Tesh."

absolute("A world of hers where mine evolves.") ➞ "An absolute world of hers where mine evolves."

absolute("A spread of love, not hate.") ➞ "An absolute spread of love, not hate."

absolute("Tesha is a woman of true substance and a beauty.") ➞ "Tesha is an absolute woman of true substance and an absolute beauty."

absolute("A thing of beauty is a joy forever.") ➞ "An absolute thing of beauty is an absolute joy forever."

absolute("An apple for a day keeps a doctor away.") ➞ "An apple for an absolute day keeps an absolute doctor away."

Observações

  • Observe as letras maiúsculas, como mostrado nos exemplos n.º 2, 3 e 5.
  • O artigo "a" pode aparecer várias vezes.