Steps
Load COVERPAGE data from the appropriate quarter folder (
/root/2025-q2or/root/2025-q3)- Read the COVERPAGE.txt file containing fund registration information
Perform fuzzy matching on the fund name field
- Use fuzzy string matching library (e.g.,
fuzzywuzzy) to find best match against search term - Set a reasonable similarity threshold (e.g., 80+) to filter candidates
- Return top match with highest similarity score
- Use fuzzy string matching library (e.g.,
Validate the match
- Confirm the matched fund name aligns with expected fund characteristics
- If multiple high-confidence matches exist, manually verify which is correct
Extract accession_number
- Retrieve the accession_number field from the matched record
- This accession_number is required for all subsequent fund detail lookups
Document the match quality
- Record the similarity score and matched fund name for audit purposes
- Note if manual verification was required