@maschinenlesbar.org/lebensmittelwarnung-cli
    Preparing search index...

    Function matchType

    • The product type a slug, a German name or a word for it names ("Kosmetik", "cosmetics", "Tattoo", "Babyprodukte", "food"): the type whose word is the longest part of it. Anything else, or words of two types equally long, is a validation error that lists the five types.

      Parameters

      • text: string

      Returns TypeMatch