rosaenlg-filter
Version:
Filtering feature of RosaeNLG
23 lines (22 loc) • 911 B
TypeScript
/**
* @license
* Copyright 2019 Ludan Stoecklé
* SPDX-License-Identifier: Apache-2.0
*/
import { LanguageCommon, DictManager, Constants } from 'rosaenlg-commons';
export declare abstract class LanguageFilter {
cleanSpacesPunctuationDoDefault: boolean | null;
languageCommon: LanguageCommon;
constants: Constants;
protected dictManager: DictManager;
constructor(languageCommon: LanguageCommon);
abstract protectRawNumbers(input: string): string;
contractions(input: string): string;
beforeProtect(input: string): string;
justBeforeUnprotect(input: string): string;
titlecase(_input: string): string;
cleanSpacesPunctuation(input: string): string;
cleanSpacesPunctuationCorrect(input: string): string;
addCapsSpecific(input: string): string;
protected contract2elts(rawFirstPart: string, secondPart: string, replacer: string, input: string): string;
}