Iraiyaṉār Akapporuḷ, or Kaḷaviyal eṉṟa Iraiyaṉār Akapporuḷ, literally "Iraiyanar's treatise on the love-theme, called 'The study of stolen love'" () is an early mediaeval work on Tamil poetics, specifically, on the literary conventions associated with the akam tradition of Tamil love poetry. The date of the work is uncertain, but it is generally taken to have been composed between the fifth and eighth centuries.
The Akapporul consists of a set of sixty nūṟpās – terse epigrams written in verse which codify rules – attributed to Iraiyanar. The received text of the accompanied by a long prose treatise on akam poetics attributed to Nakkiraṉār, which is structured as a commentary on the nūṟpās, but significantly expands on them and introduces several new ideas. The work as a whole occupies an important place in the history of Tamil literature for several reasons. The poetical argument of the work, and in particular Nakkiranar's treatment of traditional love episodes as successive scenes in an unfolding drama, was extremely influential in the development of Tamil love poetry and poetics in the medieval and pre-colonial periods. Secondly. Nakkiranar's treatise is both the first major Tamil work to be written entirely in prose, and the first erudite textual commentary in Tamil, and as such stylistically shaped the development of the Tamil prose and commentarial traditions. Finally, the work also contains the oldest account of the Sangam legend, which has played a significant role in modern Tamil consciousness.

Layers, authorship and dating
The Iraiyanar Akapporul in its present form is a composite work, containing three distinct texts with different authors. These are sixty nūṟpās which constitute the core of the original Iraiyanar Akapporul, a long prose commentary on the nūṟpās, and a set of poems called the Pāṇṭikkōvai which are embedded within the commentary.

The nūṟpās
The original Iraiyanar Akapporul consisted of sixty brief verses – called nūṟpās – that, in total, contain 149 lines. The verses show a number of similarities with the poruḷatikāram section of the Tolkappiyam – an older manual on Tamil grammar, poetics and prosody – both in its vocabulary and the core concepts it discusses. Takahashi suggests that this work was originally composed as a practical handbook for writing love poetry in accordance with the conventions of the akam tradition. The intent behind its composition, according to him, was to produce something that was more accessible and useful to poets than existing theoretical works on poetics, such as the poruḷatikāram.

The author of the sixty verses is unknown. Nakkiranar's commentary states that the verses were found inscribed on three copper plates under the altar to Shiva in Madurai, in the time of the Pandiyan king Ukkiraperuvaluti, who is also mentioned in the Akananuru as being the king who ordered its compilation. Nakkiranar says their author was Shiva himself, "the flame-hued lord of Alavayil in Madurai". Later sources, such as Ilampuranar's commentary on the Tolkappiyam, name the author of the sixty nūṟpās as "Iraiyanar", which literally means "lord", but is also a common name of Shiva. Apart from this legend, there is no tradition or concrete evidence as to who their human author was. Zvelebil and Marr suggest that the author was a poet or grammarian, possibly called Iraiyanar, and that the text itself had probably been stored in the temple at Madurai under Shiva's altar, where it was rediscovered in the time of Ukkiraperuvaluti. A poem in the Sangam anthology Kuruntokai is also attributed to Iraiyanar, and Marr goes on to suggest that the author of the nūṟpās may have been the same person as the author of that poem.
The verses are also difficult to date. The commentary says that they were composed in the Sangam period, but the scholarly consensus is that they are from a later date. Takahashi and Zvelebil assign them to a period between the fifth and sixth centuries, on the basis that their relationship to the poruḷatikāram suggests that they were composed a few generations after the final redaction of the poruḷatikāram, which they date to the 4th–5th centuries. Marr takes the view that the similarities between the nūṟpās and the poruḷatikāram indicate that the two were broadly contemporaneous, and drew upon common poetic ideas and definitions.





