== date: 2026-11-22 == == python: Python 3.12.3, node: v24.21.0 (ICU 78.3, Unicode 17.0) == wrote 16 strings and 15 tag cases word counter run: ok hashtag counter run: ok == A. Word counter 'characters' against four independent counts == id | tool | utf16 (python) | utf16 (node) | code points | graphemes | utf8 bytes | tool==utf16 empty | None | 0 | 0 | 0 | 0 | 0 | True a2200 | 2200 | 2200 | 2200 | 2200 | 2200 | 2200 | True a2201 | 2201 | 2201 | 2201 | 2201 | 2201 | 2201 | True sample | 182 | 182 | 182 | 181 | 181 | 184 | True croissant-1100 | 2200 | 2200 | 2200 | 1100 | 1100 | 4400 | True croissant-1101 | 2202 | 2202 | 2202 | 1101 | 1101 | 4404 | True letters-100-croissant | 2300 | 2300 | 2300 | 2200 | 2200 | 2500 | True family | 8 | 8 | 8 | 5 | 1 | 18 | True flag | 4 | 4 | 4 | 2 | 1 | 8 | True thumb-tone | 4 | 4 | 4 | 2 | 1 | 8 | True keycap-1 | 3 | 3 | 3 | 3 | 1 | 7 | True e-acute-nfc | 4 | 4 | 4 | 4 | 4 | 5 | True e-acute-nfd | 5 | 5 | 5 | 5 | 4 | 6 | True cjk | 6 | 6 | 6 | 6 | 6 | 18 | True bold-fancy | 20 | 20 | 20 | 10 | 10 | 40 | True line-breaks | 6 | 6 | 6 | 6 | 6 | 6 | True tool equals the Python UTF-16 count on 16 of 16 strings controls: a2200 -> 2200 (expect 2200); a2201 -> 2201 (expect 2201); empty -> None (expect None: no figures shown) order check (utf16 >= code points >= graphemes) holds on all strings: True == B. Hashtag counter against a person's count (expect) == id | text | expect | tool | unique | over-5 note | listed | tool==expect none | 'no tags here' | 0 | 0 | 0 | False | '' | True three | '#a #b #c' | 3 | 3 | 3 | False | '#a #b #c' | True five | '#one #two #three #four #five' | 5 | 5 | 5 | False | '#one #two #three #four #five' | True six | '#one #two #three #four #five #six' | 6 | 6 | 6 | True | '#one #two #three #four #five #six' | True lone-hash | '# alone and ## and #!' | 0 | 0 | 0 | False | '' | True joined | '#tag1#tag2' | 2 | 2 | 2 | False | '#tag1 #tag2' | True digits | '#2026' | 1 | 1 | 1 | False | '#2026' | True accent | '#café' | 1 | 1 | 1 | False | '#café' | True apostrophe | "#don't" | 1 | 1 | 1 | False | '#don' | True hyphen | '#dont-stop' | 1 | 1 | 1 | False | '#dont' | True url-fragment | 'see example.com/page#section for more' | 0 | 1 | 1 | False | '#section' | False duplicates | '#Pasta #pasta #PASTA' | 3 | 3 | 1 | False | '#Pasta #pasta #PASTA' | True emoji-tag | '#🥐' | 0 | 0 | 0 | False | '' | True fullwidth | '#tag' | 0 | 0 | 0 | False | '' | True cjk-tag | '#今日' | 1 | 1 | 1 | False | '#今日' | True tool equals the by-eye count on 14 of 15 cases; differences listed above control: 'five' over-note is False (expect False) and 'six' over-note is True (expect True)