module IsoDoc::I18n::Liquid

def ordinal_word(num, label = "", infl = "")

def ordinal_word(num, label = "", infl = "")
  l = @@i18n.labels[label]
  h = @@i18n.labels["inflection"]&.dig(l, "grammar") || {}
  grammar = h.merge(parse_hash(infl, symbol: false))
  @@i18n.inflect_ordinal(num.to_i, grammar, "SpelloutRules")
end