Hi,
I am trying to find barbarisms in my texts.
I am currently working with Spanish, so the examples will be in that language.
These are some of the sentences (in the regex you’ll see more words) I would like to find (part in bold):
- Decia que bajo esta circunstancia nal
- abc Bajo preparación abc bajo revisión. (Update, this was not contemplated by this regex)
I do not want to find:
- Bajo esta idea
Currently the regex I have developed exceeds the boundries of the bold sentences and also finds example 3 which I do not want.
This is the regex string:
(bajo .{1,} [\bbase\b \bcircunstancia[s]?\b \bcondici[ón ones]?\b \baspecto[s]?\b \bconcepto[s]?\b \bsupuesto[s]?\b]+)
In square brackets I’ve put the optional endings I am looking for.
Can someone explain why? Thanks!