Skip to content

Commit

Permalink
Revert irregular-plurals
Browse files Browse the repository at this point in the history
  • Loading branch information
kristiandupont committed Jun 23, 2024
1 parent 2705aaa commit 27d3b6f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
13 changes: 5 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@kristiandupont/recase": "^1.2.1",
"chalk": "4.1.2",
"extract-pg-schema": "^5.0.0",
"irregular-plurals": "^4.0.0",
"irregular-plurals": "^3.2.0",
"optionator": "^0.9.1",
"pg": "^8.3.3",
"ramda": "^0.30.0"
Expand Down
4 changes: 2 additions & 2 deletions src/rules/nameInflection.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { TableDetails, ViewDetails } from "extract-pg-schema";
import irregularPlurals from "irregular-plurals";
import irregularPlurals from "irregular-plurals/irregular-plurals.json";
import * as R from "ramda";

import type Rule from "../Rule";
Expand All @@ -21,7 +21,7 @@ const detectInflection = (word: string) => {

if (
lastWord in irregularPlurals &&
irregularPlurals.get(lastWord) === lastWord
(irregularPlurals as Record<string, string>)[lastWord] === lastWord
) {
// Irregular and singular = plural.
return "unknown";
Expand Down

0 comments on commit 27d3b6f

Please sign in to comment.