criticaljuncture / reference_parser

0 stars 0 forks source link

Section X.Y of Z #26

Closed andrewcarpenter closed 2 years ago

andrewcarpenter commented 3 years ago

Context

Miriam from OFR flagged 16 CFR 1450.3:

image

Where we're linking up text like Section 9.4 of ANSI/APSP/ICC-16 2017

Is it possible to not link up references that end with "of Z" when Z doesn't represent a portion of the CFR?

rushed commented 3 years ago

This is currently done via an excluding regex which I’ve updated for the flagged section. Let me know if you’d like to see something stricter.

https://github.com/criticaljuncture/reference_parser/blob/main/lib/reference_parser/cfr.rb#L308

Screen Shot 2021-10-04 at 11 13 15 AM

rushed commented 2 years ago

merged in https://github.com/criticaljuncture/reference_parser/commit/923edad6801179fd0fe30c94585f8f45c423b675