@promptbook/vercel
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
13 lines (12 loc) • 518 B
TypeScript
import type { ExpectationAmount } from '../../pipeline/PipelineJson/Expectations';
/**
* Counts number of words in the text
*
* @public exported from `@promptbook/utils`
*/
export declare function countWords(text: string): ExpectationAmount;
/**
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
* TODO: [🧠][✌️] Make some Promptbook-native token system
* TODO: [✌️] `countWords` should be just `splitWords(...).length`, and all other counters should use this pattern as well
*/