Skip to content

Add a new function for reading the 'National Reference Files'#56

Open
Moohan wants to merge 5 commits into
mainfrom
lookup/national_ref_files
Open

Add a new function for reading the 'National Reference Files'#56
Moohan wants to merge 5 commits into
mainfrom
lookup/national_ref_files

Conversation

@Moohan

@Moohan Moohan commented May 4, 2026

Copy link
Copy Markdown
Member

This allows reading any file in the top-level directory <lookups>/Unicode/National Reference Files/ by name. The filename search is case-insensitive and will drop the extension (if provided). If there are multiple file types available, it will choose parquet preferentially. This preference code was already in find_specific_file, so I refactored it out of there so I could reuse it for this new function.

If a given filename isn't matched and the user has {stringdist} installed, it will try to suggest close matches in the error message.

Moohan and others added 5 commits May 4, 2026 15:47
This allows reading any file in the top-level directory `<lookups>/Unicode/National Reference Files/` by name. The filename search is case-insensitive and will drop the extension (if provided). If there are multiple file types available, it will choose parquet preferentially. This preference code was already in `find_specific_file`, so I refactored it out of there so I could reuse it for this new function.

If a given filename isn't matched and the user has `{stringdist}` installed, it will try to suggest close matches in the error message.
@Moohan Moohan linked an issue May 6, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New lookup - National Reference Files

1 participant