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

    Function searchForms

    • The forms search compares, for one text: Unicode-normalised (a decomposed a + U+0308 from a macOS paste is ä), lower-cased, whitespace (a non-breaking space too) collapsed to one space and trimmed, then folded twice — once with the German umlauts transliterated (ä → ae, ö → oe, ü → ue) and once with every diacritic dropped (ä → a, é → e); ß and ẞ become ss in both. A needle matches when its transliterated form is a substring of the product name's, or, for a needle without an umlaut, its plain form of the name's plain form: so kaese, kase, KÄSE and käse all find "Käse", weisse finds "weiße", Erdnuss finds "Erdnüsse" and muesli "Müsli". A needle's own umlaut is never dropped: Öl would be ol and find "Schokolade" and "Alkohol". The portal spells product names as their makers do, and the CLI's own slugs teach the ae/oe/ue spelling (thueringen), so a literal match answered "no recall" for five listed Käse recalls.

      Parameters

      • text: string

      Returns SearchForms