UNPKG

@zsnout/ithkuil

Version:

A set of tools which can generate and parse romanized Ithkuil text and which can generate Ithkuil script from text and JSON data.

18 lines (17 loc) 570 B
import { anyText, seq } from "../builder.js"; import { R, V } from "../forms.js"; /** * A regular expression matching single-affix affixual adjuncts. A group marked * as **required** will always be present, while those marked **optional** may * not be present. * * 1. Vx (required) * 2. Cs (required) * 3. Vs (optional) */ export const singleAffixAffixualAdjunct = /* @__PURE__ */ seq( /* @__PURE__ */ V.asGroup(), /* @__PURE__ */ R.asGroup(), /* @__PURE__ */ anyText("a", "u", "e", "i", "o", "ö").asGroup().optional()) .matchEntireText() .compile();