The check_rules.groovy is an extremely valuable script for running quality assurance on translations. Although it lacks some of the common functions right now, it could be used as a basis for creating a full-fledged QA feature like the ones found in commercial CAT tools. One step toward this would be adding the ability to sort by error type (or more generally column), which is crucial for efficient QA: errors are usually sorted by type, not by segment, which makes it possible to focus on one error type at a stretch.
It appears that the sorting mechanism created in the feature request [#972] might be a solution to this new feature request as well.
can do this during weekend.
I've added "Equal source and target" and "Untranslated/Empty target" rules (the updated version of the script is attached here). I can try to incorporate what cienislaw did for the spell-check script for this one too, and it would be a wonderful monkey-programming practice for me =). May I and should I?
Last edit: Kos Ivantsov 2014-05-09
No objections from my side.
Ok, it took me a while but I managed to implement cienislaw's code into check_rules.groovy
What has been added/improved:
I included cienislaw as the author, as much of his work has been almost verbatim copied here. Thank you very much, Piotr; playing with your code was very educational.
Attached are the new script and 3 .properties files (the script fails to execute if no .property is found).
Last edit: Didier Briel 2014-06-04
Thanks to the prompt response from Roman, new rule was added, previous post edited, updated files attached anew.
Have you changed your mind about what is disabled by default? In the script I downloaded, everything was checked.
Didier
Yes, sorry for not updating that part of the post. I personally prefer not to have those enabled by default, but Roman and several other people who tested the script, wanted to have all of the options enabled. Defaults are easily changeable, of course.
No problem. I just wanted to be sure the documentation was consistent with the script. I edit your post accordingly.
Didier
Implemented in SVN (/trunk).
I added a French localisation.
Didier
Implemented in the released version 3.1.2 of OmegaT.
Didier