The existing pluralization is basically a rubber stamp method of adding s onto the word. I noticed this pluralizes words which have a different pluralization requirement, such as University, incorrectly (e.g. Universitys). It also supports other less-common pluralization, such as sex/sexes, ox/oxen, etc.
This can be corrected manually after OpenAPI generation for small ontologies. But it is unwieldy for larger ones.
Upon investigating tools that we could use to pluralize, I was shocked that Java does not support this well compared to many other programming/scripting languages. I could only find ones that handle English, and there were only a few tools available (some have not been updated for many years). Because it was currently only adding s, and I assume it was English-centric for this purpose(?), I settled with JiBX tools. JiBX tools was updated as recently as late 2022.
The existing pluralization is basically a rubber stamp method of adding
s
onto the word. I noticed this pluralizes words which have a different pluralization requirement, such asUniversity
, incorrectly (e.g.Universitys
). It also supports other less-common pluralization, such assex
/sexes
,ox
/oxen
, etc.This can be corrected manually after OpenAPI generation for small ontologies. But it is unwieldy for larger ones.
Upon investigating tools that we could use to pluralize, I was shocked that Java does not support this well compared to many other programming/scripting languages. I could only find ones that handle English, and there were only a few tools available (some have not been updated for many years). Because it was currently only adding
s
, and I assume it was English-centric for this purpose(?), I settled with JiBX tools. JiBX tools was updated as recently as late 2022.