interrogative pronoun, nominative singular neuter (sometimes used as indefinite "a certain")
Analysis. The word functions as a question marker; in narrative contexts it often introduces a new or contrasting item without interrogative force.
Etymology. From the same root as *kata*, related to Sanskrit *katara* (which of two) and *ka* (who, what). The suffix *-ma* is a pronominal marker found in demonstratives and interrogatives across Indo-European.
Meanings from the Digital Pāḷi Dictionary; morphology and etymology by Claude.
Lite mode — plain HTML for e-readers and old browsers. Full version