summaryrefslogtreecommitdiffstats
path: root/rtemsspec/content.py
diff options
context:
space:
mode:
Diffstat (limited to 'rtemsspec/content.py')
-rw-r--r--rtemsspec/content.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/rtemsspec/content.py b/rtemsspec/content.py
index bffcacff..98cb5ebe 100644
--- a/rtemsspec/content.py
+++ b/rtemsspec/content.py
@@ -1042,7 +1042,10 @@ def get_value_plural(ctx: ItemGetValueContext) -> Any:
try:
return ctx.value[ctx.key]
except KeyError:
- return f"{ctx.value['term']}s"
+ term = ctx.value["term"]
+ if term.endswith("y"):
+ return f"{term[:-1]}ies"
+ return f"{term}s"
class ExpressionMapper: