UNPKG

recipe-ingredient-parser-v3

Version:

Natural language parser for recipes and ingredient lists, incl. combining ingredients

20 lines 685 B
"use strict"; // Example keywords (order matters: longer keywords must be first) Object.defineProperty(exports, "__esModule", { value: true }); exports.getPetraKeywords = void 0; var petraKeywords = [ "petra 00", "petra 0", "petra 8610", "petra 0", "petra 9", "petra 1", ]; // push "farina " to each keyword along side current strings petraKeywords.push.apply(petraKeywords, petraKeywords.map(function (keyword) { return "farina " + keyword; })); petraKeywords.sort(function (a, b) { return b.length - a.length; }); function getPetraKeywords() { return petraKeywords; } exports.getPetraKeywords = getPetraKeywords; //# sourceMappingURL=petra-keywords.js.map