Nyāya (Sanskrit ny-āyá, literally "recursion", used in the sense of "syllogism, inference") is the name given to one of the six orthodox or astika schools of Hindu philosophy—specifically the school of logic. The Nyaya school of philosophical speculation is based on texts known as the Nyaya Sutras, which were written by Aksapada Gautama in the 2nd century CE.