/** * Given an object containing the number of words (`word`), the number of * sentences (`sentence`), and the number of letters (`letter`) in a * document, returns the grade level associated with the document. * * @param {Counts} counts * Counts from input document. * @returns {number} * Grade level associated with the document. */ export function colemanLiau(counts: Counts): number /** * Counts from input document. */ export type Counts = { /** * Number of sentences. */ sentence: number /** * Number of words. */ word: number /** * Number of letters. */ letter: number } /** * Deprecated: please use the `Counts` type instead. */ export type ColemanLiauCounts = Counts