2011/10/29 Faith Tarcha <faith / centrum.sk>:
> Hello guys, I have two objects that consist of arrays and I am suppose
> to generate "an" and "a" articles for the words in the arrays by using a
> new object.
>
> Let's be more specific.
> I have an object object1 = ['beatiful girl', 'ugly cat', 'small book']
> and another object called object2 = ['ball', 'elephant', 'flower']. New
> object called "identifier" should generate the correct article (either
> "a" or "an")in front of all these words from these 2 objects so it
> should do this: a beautiful girl, an ugly cat, a small book, a ball, an
> elephant, a flower.
>
> Any suggestions?

IMHO this is not a Ruby question, but a question about how to
implement a logic in Ruby. Probably there is no Ruby library in the
world that examines a word and returns a proper "a" or "an", so yuo
need to create it.

-- 
Iaki Baz Castillo
<ibc / aliax.net>