UNPKG

@promptbook/google

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

15 lines (14 loc) 1 kB
import type { LinguisticHashLanguage } from './LinguisticHashLanguage'; export { DEFAULT_LINGUISTIC_HASH_LANGUAGE, LINGUISTIC_HASH_LANGUAGES, normalizeLinguisticHashLanguage, } from './LinguisticHashLanguage'; export type { LinguisticHashLanguage } from './LinguisticHashLanguage'; export { DEFAULT_LINGUISTIC_HASH_WORD_COUNT, MAX_LINGUISTIC_HASH_WORD_COUNT, MIN_LINGUISTIC_HASH_WORD_COUNT, normalizeLinguisticHashWordCount, } from './linguisticHashWordCount'; /** * Creates a human-readable hash as a short, story-like phrase. * * @param wordCount how many words to include (defaults to {@link DEFAULT_LINGUISTIC_HASH_WORD_COUNT}, clamped to * {@link MIN_LINGUISTIC_HASH_WORD_COUNT}..{@link MAX_LINGUISTIC_HASH_WORD_COUNT}) * @param language optional language code (defaults to {@link DEFAULT_LINGUISTIC_HASH_LANGUAGE}) * * @public exported from `@promptbook/utils` */ export declare function linguisticHash(input: string, wordCount?: number, language?: LinguisticHashLanguage): Promise<string>;