Garbage sorting lookup
A built-in table of 457 real items across recyclable, hazardous, wet and dry waste; look up several at once with exact hits first and prefix-based fuzzy matching otherwise, printing a colour tag and a disposal tip. Classification follows the Shanghai standard as a reference, runs fully locally and is not live policy.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Result
A built-in table of 457 items: exact hits first, then fuzzy matching. Shanghai standard reference.
Enter a value to see the result
Queries: 0 · Matched: 0 · Fuzzy hits: 0 · Table entries: 0
What this tool does
- Check the bin for an item you are unsure about.
- Walk children through examples one by one.
- Help relatives who are new to the local rules look items up.
Example
Input
香蕉皮 电池 塑料瓶
Output
Garbage sorting lookup (Shanghai standard as reference) Queried 3, matched 3 (fuzzy matches: 0) [棕 label] 香蕉皮 → 湿垃圾 Verdict: Exact match (identical table entry) Disposal tips: 沥干水分、去掉外包装后投放;大骨头、贝壳、榴莲壳属于干垃圾。 [红 label] 电池 → 有害垃圾 Verdict: Exact match (identical table entry) Disposal tips: 单独投放到有害垃圾收集容器;灯管、药品连包装一起投,不要打碎。 [蓝 label] 塑料瓶 → 可回收物 Verdict: Exact match (identical table entry) Disposal tips: 清空内容物、简单冲洗后压扁投放;纸类保持干燥,玻璃轻放避免割伤。 Summary: Item Category Label colour Matched 香蕉皮 湿垃圾 棕 香蕉皮 电池 有害垃圾 红 电池 塑料瓶 可回收物 蓝 塑料瓶 Built-in table (reference): 457 entries Category Label colour Entries Share 可回收物 蓝 108 23.63% 有害垃圾 红 69 15.1% 湿垃圾 棕 150 32.82% 干垃圾 黑 130 28.45% Basis: the four categories of the Shanghai household waste regulations (recyclable / hazardous / wet / dry), **reference table, not live policy**; standards differ between cities (Beijing calls them kitchen waste / residual waste) — follow your local rules. Easily misjudged items such as large bones, shells, durian husks and coconut shells follow the Shanghai reading and go to dry waste.
Frequently asked questions
Is the Shanghai standard authoritative here?
The four categories follow the Shanghai household waste regulation as a reference, not live policy. Other cities use different names and assignments, so follow your local rules.
How large is the table?
457 real items split into recyclable, hazardous, wet and dry; the result block prints the live counts and shares.
How does fuzzy matching work?
First it checks whether the query contains a table entry or the entry contains the query; otherwise it compares the shared prefix after stripping bracketed notes and needs at least two characters.
Why are big bones and shells dry waste?
The Shanghai reading puts hard, slow-rotting items such as large bones, shells, durian husks and coconut shells into dry waste, while small bones and fish bones are wet waste.
Is my query uploaded?
No. The table is compiled into the code and lookups run locally with no request.
Keywords:garbage sorting