Re:Show HN: CIA World Factbook Archive (1990–2025), searchab...
by MilkMp on Monday February 23, 2026 @12:00AM
(#47118336)
Found the problem, the total regex doesn't handle magnitude suffixes:
2018: total: 17,856,024 → parses as 17856024 (correct raw count)
2020: total: 18.17 million → parses as 18.17 (WRONG - drops "million")
2025: total: 39.3 million → parses as 39.3 (WRONG)
So the chart jumps from ~18 million down to ~18, making it wrong. The fix is to handle "million/billion/trillion" after total.
2018: total: 17,856,024 → parses as 17856024 (correct raw count) 2020: total: 18.17 million → parses as 18.17 (WRONG - drops "million") 2025: total: 39.3 million → parses as 39.3 (WRONG) So the chart jumps from ~18 million down to ~18, making it wrong. The fix is to handle "million/billion/trillion" after total.
Just deployed a new bug fix.
Thanks for bringing this to my attention!