the sutta pitaka consists of five groups of textsnikayas ( meaning collections in pali ) : digha nikaya ( collection of long discourses ) , majjhima nikaya ( collection of medium-length discourses ) , samyutta nikaya ( collection of grouped discourses ) , anguttara nikaya ( collection of discourses on numbered topics ) , and khuddaka nikaya ( collection of miscellaneous texts ) .