You are on page 1of 1

* TextBuilder Definitions for:

* Custom grammatical properties: {X}


* Regular expressions (regex): /X/
* Predefined substitution constants for commonly used complex strings: [X]

* [COUNT] encapsulates the notation for choosing the correct article or number
text.
#[COUNT]
=(#(.v?an/a)/two/three/four/five/six/seven/eight/nine/ten/[.#])

* Noun-Case-property labels
#{C}
=nom/acc/gen/dat

* Gender-property labels
#{G}
=M/F/N

* Test of custom property {g} (as in Swedish en vs ett)


#{g}
=en/ett

* Regex to detect next word starting with a vowel.


#/v/
=^\s*[aeiouAEIOU]

* Regex to detect if previous text ends with an s.


#/s/
=s$

* Substitution for primary-noun possessive suffix


#['s+]
=(#+'s/(.s?'/'s))

* Substitution for secondary-noun possessive suffix


#['s-]
=(#-'s/(.s?'/'s))

********* Below here are items for testing purposes ***********

* Test of custom property named 'g' with labels "en" and "ett"
#{g}
=en/ett

* The items below are to test some features for Turkish language.

* Possessive-suffix selection formula


#['n]
=(._c?(._vc#'ın/'in/'un/'ün)/(._vc#'nın/'nin/'nun/'nün))

* Regex to test if previous string ends in non-vowel.


#/_c/
=[^aıeiouöü]$

* Regex with match groups to resolve the vowel group of the last vowel of the
previous string (optionally ending in 1 or more non-vowels).
#/_vc/
=(?:([aı])|([ei])|([ou])|([öü]))[^aıeiouöü]*$

You might also like