Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand the proposed types inference workflow to handle fuzzy matching #693

Open
4 tasks
Tracked by #618
keithmanville opened this issue Dec 17, 2024 · 0 comments
Open
4 tasks
Tracked by #618

Comments

@keithmanville
Copy link
Collaborator

keithmanville commented Dec 17, 2024

This feature will build off of #691 by adding functionality to match inferred parameter type names to fuzzy matches from the database and propose them as options to the user.

Use a standard string distance metric (e.g. levenstein) with a threshold to define a match. Any non-matching portion of the structure results in a non-match.

Guidance for matching structured types:

  • dict[str, Model] would go one layer deep for matching
  • dict[str, dict[str, Model]] would go two layers deep

Definition of Done

  • The typeNameProposal workflow is expanded to fuzzy match type names
  • New tests are added for this workflow
  • All tests pass
  • The feature is merged into dev
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

No branches or pull requests

1 participant