Kokkoka describes himself in the book as siddha patiya pandita, i.e. "an ingenious man among learned men".
[6] Unlike the Kama Sutra, which is an ancient sex manual related to Hindu literature, Ratirahasya deals with medieval Indian society.
A sex manual was needed that would be suitable for the medieval cultural climate, and Ratirahasya was written, quite different from the ancient text Kama Sutra.
[2] There are fifteen pachivedes (chapters) and 800 verses in Ratirahasya which deal with various topics such as different physiques, lunar calendar, different types of genitals, characteristics of women of various ages, hugs, kisses, sexual intercourse and sex positions, sex with a strange woman, etc.
Another English translation was made by S. C. Upadhyaya, entitled Kokashastra (Rati Rahasya) of Pundit Kokkoka.