Preparing search index...

    Module RecipeValidationHelpers

    Pure helper functions for the recipe import validation pipeline.

    Covers ingredient and tag list manipulation (merging, deduplication, filtering, replacement) as well as the higher-level orchestration functions that split items into exact database matches and fuzzy-match queues requiring user review.

    All functions are side-effect-free and return new arrays; none mutate their inputs.

    IngredientState
    mergeQuantities
    mergeIngredient
    filterOutExistingTags
    removeTagByName
    addOrMergeIngredientMatches
    replaceMatchingTags
    addNonDuplicateByName
    processTagsForValidation
    processIngredientsForValidation
    deduplicateIngredientsByName
    validateAndQueueTags
    validateAndQueueIngredients
    sortAlphabetically
    computeTagSimilarity
    computeIngredientSimilarity