Skip to content

Commit a37f225

Browse files
authored
Merge pull request #54 from constructive-io/devin/1774842759-fix-inflection-compound-base
fix(inflection): expand compound *base word exceptions (codebases → codebase)
2 parents 5b474bf + a8ffedd commit a37f225

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/inflection/deploy/schemas/inflection/tables/inflection_rules/fixtures/1589249334312_fixture.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ INSERT INTO inflection.inflection_rules
1313
('plural', '(child)ren$', NULL),
1414
('plural', '([ti])a$', NULL),
1515
('plural', '((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$', NULL),
16-
('plural', '(database)s$', NULL),
16+
('plural', '(database|codebase|firebase|knowledgebase)s$', NULL),
1717
('plural', '(drive)s$', NULL),
1818
('plural', '(hi|ti)ves$', NULL),
1919
('plural', '(curve)s$', NULL),
@@ -105,7 +105,7 @@ INSERT INTO inflection.inflection_rules
105105
('singular', '^(m|wom)en$', E'\\1an'),
106106
('singular', '(pe)ople$', E'\\1rson'),
107107
('singular', '(child)ren$', E'\\1'),
108-
('singular', '(database)s$', E'\\1'),
108+
('singular', '(database|codebase|firebase|knowledgebase)s$', E'\\1'),
109109
('singular', '(drive)s$', E'\\1'),
110110
('singular', '^genera$', E'genus'),
111111
('singular', '^(criteri)a$', E'\\1on'),

packages/inflection/sql/pgpm-inflection--0.15.3.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ INSERT INTO inflection.inflection_rules (
348348
('plural', '(child)ren$', NULL),
349349
('plural', '([ti])a$', NULL),
350350
('plural', '((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$', NULL),
351-
('plural', '(database)s$', NULL),
351+
('plural', '(database|codebase|firebase|knowledgebase)s$', NULL),
352352
('plural', '(drive)s$', NULL),
353353
('plural', '(hi|ti)ves$', NULL),
354354
('plural', '(curve)s$', NULL),
@@ -440,7 +440,7 @@ INSERT INTO inflection.inflection_rules (
440440
('singular', '^(m|wom)en$', E'\\1an'),
441441
('singular', '(pe)ople$', E'\\1rson'),
442442
('singular', '(child)ren$', E'\\1'),
443-
('singular', '(database)s$', E'\\1'),
443+
('singular', '(database|codebase|firebase|knowledgebase)s$', E'\\1'),
444444
('singular', '(drive)s$', E'\\1'),
445445
('singular', '^genera$', 'genus'),
446446
('singular', '^(criteri)a$', E'\\1on'),

0 commit comments

Comments
 (0)