As parsed by AUNAME rule set, this string has three classification tokens (+W+).
Is there some way in PAL to force this string to have four tokens, namely "ACME CHEMICALS PTY LTD", which would lead to a pattern of +WWO ?
We tried
Code: Select all
+ | W | + = "PTYLTD"
COPY "PTY LTD" temp
RETYPE [3] & temp temp
We tried
Code: Select all
+ | W | + = "PTYLTD"
RETYPE [3] W "PTY" "PTY"
RETYPE [4] O "LTD "LTD"
I should probably add that there are worse examples that need to be solved, for example "SINGAPOREPTELTD" or "AUSTRALIAPTYLTD" which we'd like to split into three tokens.
And, ideally, we'd like to use standardized abbreviations of tokens like "LDT" (which should be "LTD" in this context).
Thank you for your time.