@promptbook/vercel
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
18 lines (17 loc) • 565 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,...
* TODO: [🧠][✌️] Make some Promptbook-native token system
*/