Hi all, I found some regexs which help to have better punctuation if they are not controlled by LT please add them to the tool: The Second line after the regexs is suggestion line
------- should have space between word and numbers numbers (\d+)(\w+) $1 $2 (\w+)(\d+) $1 $2 space between refrrence Citasion and last word (\w+)[ ]+([\u0002]) $1$2 (\w+)([\u0002])([^ \.!؟\؛،\)\]\»]) $1$2 $3 Space before fourmula ([^\(\)\»\«\s\])([\u0001]) $1 $2 after formula [ ]([\u0001])([^\(\)\»\«\s،\؛;,!؟\?!]) $1 $2 first of the paragraph shouldn not have ; ([\(\[«])[ ]*[؛;] $1 after ; should not have any pouncuation ([؛;])(([ ]+)?[\.،؛;:!؟\-…]+)+ $1 the end of the paragraph should not have ; [؛;] *(\n) .$1 after , should not have other pouncuation ([،\,])([ ]+)?([,;،؛:!؟\-][\.،؛:!؟\-]*|\.(?!\.)) $1 At the end of paragraph should not have , ([،\,])([ \n]+)?$ . , before ] ) » ([،\,\.])([\)»\]]) $2$1 ,;.: after ([« ([\(\[«])[ ]*([،\,\.;:؛]) $1 $2 $1 3 dots should not have space inside themself (\w)([»\)\]]?)[ ]*(\. +\. +\.|\.\. +\.|\. +\.\.|\.\.\. \.+) $1$2 ... use 3 dot (\w)([»\)\]]?)([ ]*)(\.\.(?!\.)|\.\.\.\.[.]+) $1$2 ... we don not have 4 dots (\w)([ ]+)?\.\.\.\.(?!\.) $1... $1. we don not have ,:?; after dot (?<!\.)\.([ ]*[,;،؛:!\?؟]+) . text ending without any pountuation ([\w\)\»\]\"\'])$ $1. $1! $1؟ $1: Yours, Reza
------------------------------------------------------------------------------
_______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel