Oma wrote:Does b$="[^aeio][aeiou]r$" do what you want?
Yes, it worked but another issue rose.
I have some prefixes in the GB speller which have a dot at the end of the pattern.
For prefixes, I am inverting the word since I believe the regular expressions should be met by checking the dictionary words from left to right, so:
1) SUFFIXES:
Code: Select all
; Try to match regular expression - 27/JAN/2019
CreateRegularExpression(#RegularExpression,b$+"$")
match=MatchRegularExpression(#RegularExpression,a$)
FreeRegularExpression(#RegularExpression)
ProcedureReturn match
2) PREFIXES:
Code: Select all
; Try to match regular expression - 27/JAN/2019
CreateRegularExpression(#RegularExpression,b$+"$")
match=MatchRegularExpression(#RegularExpression,ReverseString(a$))
FreeRegularExpression(#RegularExpression)
ProcedureReturn match
The prefixes codes produces incorrect derivates if the pattern$ has a dot at the end:
PFX F 0 con [^abehilmopru].
I did a DIFF of the two wordlists exported using Tortoise SVN and that is how I found the dot issue.
I have sent an e-mail to some Hunspell related friends asking for their opinion, but can we assume that the dots are a bug in the British .aff file and that I should remove all the dots I can find next to a "]"?
Thank you!
Kind regards,
>Marco A.G.Pinto
----------------