UNPKG

node-stemmer

Version:

A Node.js interface to the Snowball stemming algorithms

12 lines (11 loc) 384 B
/// <reference types="node" /> /// <reference types="node" /> import { CharacterEncoding } from "./enum/character-encoding.js"; export default class Stemmer { private libstemmer; private stemmer; constructor(algorithm: string, charenc?: CharacterEncoding); static algorithms(): string[]; stemWord(word: Buffer): string; stemWords(words: Buffer[]): string[]; }