recipe-ingredient-parser-v3
Version:
Natural language parser for recipes and ingredient lists, incl. combining ingredients
19 lines (18 loc) • 532 B
TypeScript
export declare function petraParse(recipeString: string, language: string, keywords?: string[]): {
quantity: number;
unit: string | null;
unitPlural: string | null;
symbol: string | null;
ingredient: string;
minQty: number;
maxQty: number;
};
export declare function petraMultiLineParse(recipeString: string, language: string): {
quantity: number;
unit: string | null;
unitPlural: string | null;
symbol: string | null;
ingredient: string;
minQty: number;
maxQty: number;
}[];