Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Correcting Plant Name Italicization in a Web App

说明与用途

PlantGeekz 通过实现 botanical‑name 解析器,纠正了植物名称的错误排版,正确地将属、种和亚种斜体化,并将栽培品种以罗马体显示,从而提升了显示准确性和符合植物学规范。

问题

Plant names were being displayed with incorrect typography, violating botanical naming conventions and confusing users.

结果

The plant names are now displayed with correct typography, improving user trust and compliance with botanical standards. The parser handles diverse input formats, flags problematic data, and maintains consistency across PHP and JavaScript implementations.

工作流

  • 1. Identify formatting rules for botanical names (italic vs. Roman).
  • 2. Collect real-world name variations from spreadsheets, catalogs, and user input.
  • 3. Write parsing rules and hand‑made test cases covering expected parts.
  • 4. Implement parser in PHP and JavaScript/TypeScript, ensuring identical output.
  • 5. Run both implementations over 30,569 real names to validate correctness.
  • 6. Add guards: shared fixtures, line‑by‑line port, differential testing.
  • 7. Integrate parser into the web app to format names on display.
  • 8. Expose CLI/Composer and npm packages for external use.
  • 9. Monitor for new name variations via issue tracking and update fixtures.

证据

We wrote the rules first and a set of hand‑made test cases second. Everything passed. Then we ran both implementations over 30,569 real names from the PlantGeekz taxonomy…

来源

parse() gives you the parts – genus, epithet, authors, infraspecific ranks, group, trade designation, cultivar – and a list of warnings…

来源

  • 记录日期: 2026-09-20T10:00:32.498Z