Un absoluto

Dada una oración, crea una función que reemplace cada aparición del artículo "a" por la frase verbal "an absolute". Debe devolver la misma cadena sin ningún cambio si no contiene ningún artículo "a".

Ejemplos

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."

Notas

  • Ten en cuenta las letras mayúsculas, como se muestra en los ejemplos n.º 2, 3 y 5.
  • El artículo "a" puede aparecer varias veces.