Preparing search index...
    • Parses a raw ingredient string into structured data.

      Extracts quantity, unit, name, and optional note from strings like "2 cups flour (for the sauce)". Parenthetical content is extracted as a note before cleaning the ingredient name.

      Parameters

      • ingredientStr: string

        Raw ingredient string from scraper

      • patterns: IgnoredIngredientPatterns = DEFAULT_PATTERNS

        Patterns for ingredients to skip

      Returns ParsedIngredient

      Parsed ingredient or failure with original string