@promptbook/utils
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
17 lines (16 loc) • 500 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;
/**
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
*/