UNPKG

@botonic/plugin-contentful

Version:

## What Does This Plugin Do?

20 lines (19 loc) 627 B
import { CMS } from '../cms'; import { Keyword, Locale, Normalizer } from '../nlp'; export declare class StemmedKeyword { readonly rawKeyword: string; readonly stemmedKeyword: string[]; constructor(rawKeyword: string, stemmedKeyword: string[]); toString(): string; } /** * Reports all the contents's stemmed keywords. * Useful to check if they're too short. */ export declare class KeywordsTool { readonly cms: CMS; readonly locale: Locale; readonly normalizer: Normalizer; constructor(cms: CMS, locale: Locale, normalizer: Normalizer); dumpKeywords(): Promise<Map<string, Keyword[]>>; }