@promptbook/langtail
Version:
It's time for a paradigm shift. The future of software in plain English, French or Latin
14 lines (13 loc) • 420 B
TypeScript
import type { ExpectationAmount } from '../../pipeline/PipelineJson/Expectations';
/**
* Split text into sentences
*
* @public exported from `@promptbook/utils`
*/
export declare function splitIntoSentences(text: string): ReadonlyArray<string>;
/**
* Counts number of sentences in the text
*
* @public exported from `@promptbook/utils`
*/
export declare function countSentences(text: string): ExpectationAmount;