You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Search does not ignore accents: crepes misses Crêpes #844
Search treats accented letters as different letters, so a query typed without accents misses recipes whose names or text have them. With a French collection this makes search hard to use: most keyboards (and phones) make accents slow to type, and people search crepes, creme, pate rather than crêpes, crème, pâte.
The same happens in cook server: the header search dropdown, the /search page and /api/search?q=crepes return nothing for crepes.
Expected
Matching ignores accents as it already ignores case: crepes, Crepes and crêpes all find Crêpes.cook, and an accented query still finds unaccented text.
Where it comes from
Both layers compare with to_lowercase() only:
cooklang-find's search_paths / score_filename_match / count_matches pick and score the candidates, so Crêpes.cook never scores above zero for crepes.
cookcli-core's matches_every_term (crates/core/src/search.rs) intersects those candidates and would drop it again even if the library returned it.
static/js/search.js (static cook build sites) does the same in the browser.
Suggested fix
Fold both sides the same way before comparing: lowercase, Unicode-decompose (NFD), drop combining marks. That also makes NFD text (macOS file names) match NFC queries. Letters without a decomposition (ø, ß, œ) are left alone. Because cookcli must not drop what the library matched, the fold should live in cooklang-find and be reused by cookcli.
I have PRs ready for both repos and will link them here.
Fix in two parts: cooklang/cooklang-find#41 (library: fold + export normalize_for_search), then the draft cookcli PR linked above, which will bump cooklang-find once that's released.
Activity
SebastienSyd commentedon Nov 18, 2026
Fix in two parts: cooklang/cooklang-find#41 (library: fold + export
normalize_for_search), then the draft cookcli PR linked above, which will bumpcooklang-findonce that's released.SebastienSyd commentedon Nov 18, 2026
ex. of result with fix: