The document describes an indexing approach for faster retrieval of words from a database to generate Tamil lyrics based on part of speech, meter pattern, and rhyme scheme. It discusses the three rhyme schemes in Tamil (monai, edhugai, iyaibu) and meter patterns based on syllable length. The approach builds separate hash tables indexed by meter pattern and rhyming letters for each part of speech and rhyme scheme. Evaluating retrieval times shows the indexed approach takes on average 1.9 milliseconds compared to 875.47 milliseconds for an unindexed word-based approach, providing much faster retrieval with constant time complexity.