Skip to content

Switch singularization engine from pattern to inflect.#10

Merged
preritdas merged 8 commits intomasterfrom
dev
Oct 11, 2022
Merged

Switch singularization engine from pattern to inflect.#10
preritdas merged 8 commits intomasterfrom
dev

Conversation

@preritdas
Copy link
Owner

The pattern library was becoming a bit of a pain, especially when trying to deploy the API to a GCP App Engine. Downloading required dependencies programmatically with nltk was raising a zipfile error, crashing the entire API.

The inflect library seems to do the job and pass all tests with only minor refactoring, thanks to the isolation of the singularize and pluralize functions.

https://github.com/preritdas/personal-api/blob/1141d6df3db932146f4cb8eb8d3072ff6bb79e65/app_groceries/grocery_utils.py#L34-L61

@github-actions
Copy link

Visit the preview URL for this PR (updated for commit 1141d6d):

https://preritdas-api--pr10-dev-m752se55.web.app

(expires Tue, 18 Oct 2022 18:54:26 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@preritdas preritdas merged commit 052a44c into master Oct 11, 2022
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.

1 participant