From 2910685a96280acfe4a454c014bc0316347d9085 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 8 Dec 2020 20:27:36 -0500 Subject: Database test updates (#1086) * Remove unused * Create DatabaseVM * Update sequences in test dictionary * Update documentation * Add second valid testing dictionary * Set up translator tests * Write expected data --- ext/bg/js/translator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js index f577d0e1..26ce1f5a 100644 --- a/ext/bg/js/translator.js +++ b/ext/bg/js/translator.js @@ -55,10 +55,11 @@ class Translator { /** * Finds term definitions for the given text. * @param mode The mode to use for finding terms, which determines the format of the resulting array. + * One of: 'group', 'merge', 'split', 'simple' * @param text The text to find terms for. * @param options An object using the following structure: * { - * wildcard: (null or string), + * wildcard: (enum: null, 'prefix', 'suffix'), * mainDictionary: (string), * alphanumeric: (boolean), * convertHalfWidthCharacters: (enum: 'false', 'true', 'variant'), -- cgit v1.2.3