Properties
addProc
add
Proc: (proc: ProcessingStep, indexOrIsPrepend?: number | boolean) => void
Type declaration
-
-
Parameters
-
-
Optional indexOrIsPrepend: number | boolean
Returns void
convertOldFormat
convertOldFormat: boolean
executeGrammar
executeGrammar: (text: string, callback?: (semanticResult: {}) => void) => void
Type declaration
-
- (text: string, callback?: (semanticResult: {}) => void): void
-
Parameters
-
text: string
-
Optional callback: (semanticResult: {}) => void
-
- (semanticResult: {}): void
Returns void
getEncodedStopwords
getEncodedStopwords: () => string[]
getGrammarDef
getGrammarDef: () => string
getGrammarSource
getGrammarSource: () => string
getProcIndex
getProcIndex: (procName: string, startIndex?: number) => number
Type declaration
-
- (procName: string, startIndex?: number): number
-
Parameters
-
procName: string
-
Optional startIndex: number
Returns number
getStopWords
getStopWords: () => string[]
getStopWordsEncRegExpr
getStopWordsEncRegExpr: () => RegExp
getStopWordsRegExpr
getStopWordsRegExpr: () => RegExp
grammar_definition
grammar_definition: string
isAsyncExec
isAsyncExec: () => boolean
js_grammar_definition
js_grammar_definition: string
loadGrammar
loadGrammar: (successCallback: () => any, errorCallback: () => any, grammarUrl: string, doLoadSynchronously?: boolean) => void
Type declaration
-
- (successCallback: () => any, errorCallback: () => any, grammarUrl: string, doLoadSynchronously?: boolean): void
-
Parameters
-
successCallback: () => any
-
errorCallback: () => any
-
grammarUrl: string
-
Optional doLoadSynchronously: boolean
Returns void
loadResource
loadResource: (successCallback: () => any, errorCallback: () => any, resourceUrl: string, doLoadSynchronously?: boolean) => void
Type declaration
-
- (successCallback: () => any, errorCallback: () => any, resourceUrl: string, doLoadSynchronously?: boolean): void
-
Parameters
-
successCallback: () => any
-
errorCallback: () => any
-
resourceUrl: string
-
Optional doLoadSynchronously: boolean
Returns void
maskAsUnicode
maskAsUnicode: (str: string, computePositions?: boolean) => string
Type declaration
-
- (str: string, computePositions?: boolean): string
-
Parameters
-
str: string
-
Optional computePositions: boolean
Returns string
maskNames
maskNames: boolean
maskString
mask
String: (str: string, computePositions?: boolean, prefix?: string, postfix?: string) => string | Positions
Type declaration
-
- (str: string, computePositions?: boolean, prefix?: string, postfix?: string): string | Positions
-
Parameters
-
str: string
-
Optional computePositions: boolean
-
Optional prefix: string
-
Optional postfix: string
maskValues
maskValues: boolean
parseStopWords
parseStopWords: () => void
preproc
Type declaration
-
-
Parameters
Returns string
recodeJSON
recodeJSON: (json: any, recodeFunc: (str: string) => string, isMaskValues?: boolean, isMaskNames?: boolean) => any
Type declaration
-
- (json: any, recodeFunc: (str: string) => string, isMaskValues?: boolean, isMaskNames?: boolean): any
-
Parameters
-
json: any
-
recodeFunc: (str: string) => string
-
-
Parameters
Returns string
-
Optional isMaskValues: boolean
-
Optional isMaskNames: boolean
Returns any
removeStopwords
remove
Stopwords: (inputStr: string, isCalcPosition?: boolean) => string | Positions
Type declaration
-
- (inputStr: string, isCalcPosition?: boolean): string | Positions
-
Parameters
-
inputStr: string
-
Optional isCalcPosition: boolean
setGrammarDef
setGrammarDef: (rawGrammarSyntax: string) => void
Type declaration
-
- (rawGrammarSyntax: string): void
setGrammarFunction
setGrammarFunction: (execGrammarFunc: (text: string, callback?: (semanticResult: {}) => void) => void, isAsync?: boolean) => void
Type declaration
-
- (execGrammarFunc: (text: string, callback?: (semanticResult: {}) => void) => void, isAsync?: boolean): void
-
Parameters
-
execGrammarFunc: (text: string, callback?: (semanticResult: {}) => void) => void
-
- (text: string, callback?: (semanticResult: {}) => void): void
-
Parameters
-
text: string
-
Optional callback: (semanticResult: {}) => void
-
- (semanticResult: {}): void
Returns void
-
Optional isAsync: boolean
Returns void
setGrammarSource
setGrammarSource: (src_code: string) => void
setStopWords
setStopWords: (stopWordArray: string[]) => void
Type declaration
-
- (stopWordArray: string[]): void
stop_words_regexp
stop_words_regexp: RegExp
unmaskJSON
unmaskJSON: (json: any, isMaskValues?: boolean, isMaskNames?: boolean) => any
Type declaration
-
- (json: any, isMaskValues?: boolean, isMaskNames?: boolean): any
-
Parameters
-
json: any
-
Optional isMaskValues: boolean
-
Optional isMaskNames: boolean
Returns any
unmaskString
unmask
String: (str: string, computePositions?: boolean, detector?: RegExp) => string | Positions
Type declaration
-
- (str: string, computePositions?: boolean, detector?: RegExp): string | Positions
-
Parameters
-
str: string
-
Optional computePositions: boolean
-
Optional detector: RegExp