UNPKG

botbuilder-dialogs-adaptive

Version:

Rule system for the Microsoft BotBuilder dialog system.

30 lines 1.12 kB
"use strict"; /** * @module botbuilder-dialogs-adaptive */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.CurrencyEntityRecognizer = void 0; const recognizers_text_number_with_unit_1 = require("@microsoft/recognizers-text-number-with-unit"); const textEntityRecognizer_1 = require("./textEntityRecognizer"); /** * Recognizes currency input. */ class CurrencyEntityRecognizer extends textEntityRecognizer_1.TextEntityRecognizer { /** * @protected * Currency recognizing implementation. * @param text Text to recognize. * @param culture Culture to use. * @returns The recognized [ModelResult](xref:botbuilder-dialogs.ModelResult) list. */ _recognize(text, culture) { return (0, recognizers_text_number_with_unit_1.recognizeCurrency)(text, culture); } } exports.CurrencyEntityRecognizer = CurrencyEntityRecognizer; CurrencyEntityRecognizer.$kind = 'Microsoft.CurrencyEntityRecognizer'; //# sourceMappingURL=currencyEntityRecognizer.js.map