You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current case to legislation parser looks for references to sections of acts. We should also find references to regulations in case law. The same logic from the legislation parser can be applied to look for references to rules of regulations.
Modify getLegislation to obtain the list of all current and repealed legislation and regulations. Legislation and regulations must be pulled and stored separately (do not mix legislation and regulations in the same table). Make a new regulations table and casesToRegulations table for relations.
Copy parseLegislationToCases and add another separate parser, or modify the existing parser, to parse regulations as well. Line 223 would need to include (or be changed to):
((word === 'r' || word === 'regulation' || word === 'rr' || word === 'regulations' || word ==='rule' || word='rules') &&
The text was updated successfully, but these errors were encountered:
Problem
The current case to legislation parser looks for references to sections of acts. We should also find references to regulations in case law. The same logic from the legislation parser can be applied to look for references to rules of regulations.
Current process
Currently the legislation parser works by pulling a list of all current and repealed legislation from legislation.govt.nz (https://github.com/openlawnz/openlawnz-pipeline/blob/master/ingester/ingester/getDataFile/pcoLegislation.js). It then looks through cases for references to "sections" by looking for particular characters defined in parseLegislationToCases.js https://github.com/openlawnz/openlawnz-pipeline/blob/b69612ee3d417f97752e6bfe03f6a10ac3dde0e9/pdfconverter/pdfconverter/parseLegislation.js#L223
Followed by a number or numbers.
Suggested modifications
((word === 'r' || word === 'regulation' || word === 'rr' || word === 'regulations' || word ==='rule' || word='rules') &&
The text was updated successfully, but these errors were encountered: