Grouped search expression

Is there a way to use regular expressions to find the corresponding objects in the original text in the translated text?

For example, in the screenshot below, it can detect if the translation is missing "#test#", but it cannot detect if there are extra "#test#" in the translation.

Trados Studio interface showing a comparison between source and target texts with a missing '#test#' in the translation.

Trados Studio regular expressions search settings with a warning for 'test1' condition to report if source matches but not target.

Trados Studio QA Checker warning message indicating 'test1' found in source but not in target (#test#).



Generated Image Alt-Text
[edited by: Trados AI at 4:49 AM (GMT 0) on 5 Mar 2024]
emoji
Parents
  •  

    I think I can do this like this:

    Screenshot showing the rules used in the verification part of the project settings.

    These three rules get me a result like this:

    Screenshot showing the results of running a QA check with the appropriate rules

    #test# check
    #test#
    #test#
    Condition: Report if both source and target match but with different count

    #test# check #2
    ^(?!.*#test#).+$
    #test#
    Condition: Report if both target and source RegEx patterns match

    #test# check #3
    #test#
    ^(?!.*#test#).+$
    Condition: Report if both target and source RegEx patterns match

    I think I need the last two because you can't have a null match rule for source and target in one rule without picking up a complete absence of the term you're looking for altogether... if I explained that well?

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
  •  

    It seems #test# is just a case and to cover all possibilities, actually needs a regex, so we need back references. And we can’t back reference from Target into Source.

    emoji
  •  

    Ah... missed that.  Indeed the grouped search only works the other way... no idea why!  Probably a good enhancement request in the idea site.

    Although sometimes I think a far simpler verification plugin could be created with a more flexible UI.  I don't think you need to set all these specific actions as the expression itself could probably be explanatory enough depending on where you place it.  Might have a look at that when we get time.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
  •   

    Indeed the grouped search only works the other way...

    It’s the same in Advanced Filter Display. I guess the regex engine searches first in Source, and only then searches Target.

    Probably a good enhancement request in the idea site.

    Definitely! Now there is this option:

    Grouped search expression – report if source matches but not target

    And the new one would be:

    Grouped search expression – report if target matches but not source

    I don't think you need to set all these specific actions as the expression itself could probably be explanatory enough depending on where you place it.

    Yeah, for example if only RegEx source is filled, the option Report if both target and source RegEx patterns match wouldn’t make sense. This option would be available only if RegEx source and RegEx target are  filled Is this what you mean?

    I wish the regex management was more complete with features such as moving rules up and down, categorizing rules, filtering by category, moving categories up and down, searching by description, adding a comment field…. I wished it was more like Workbench. Grinning The truth is with a few hundreds rules, the list becomes unmanageable.

    emoji
  •  

    Yeah, for example if only RegEx source is filled, the option Report if both target and source RegEx patterns match wouldn’t make sense. This option would be available only if RegEx source and RegEx target are  filled Is this what you mean?

    Exactly!

    I would only have a description, source, target and then checkboxes for "Match y/n", "backreference y/n" against the source and the target and you probably would not need anything else.  You'd have all possibilities covered.

    Something like that anyway.  I'll draw it up and add it to our backlog in the AppStore Team but if you have any thoughts around it let me know.

    I'll also include these...

    moving rules up and down, categorizing rules, filtering by category, moving categories up and down, searching by description, adding a comment field

    So anything else that comes to mind let me know. I'll also add export/import and do that using Excel or text.  Also add some sort of conversion utility to bring in rules from the out of the box to the new format... easy to see how much a simple idea can get out of hand very quickly!!

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
Reply
  •  

    Yeah, for example if only RegEx source is filled, the option Report if both target and source RegEx patterns match wouldn’t make sense. This option would be available only if RegEx source and RegEx target are  filled Is this what you mean?

    Exactly!

    I would only have a description, source, target and then checkboxes for "Match y/n", "backreference y/n" against the source and the target and you probably would not need anything else.  You'd have all possibilities covered.

    Something like that anyway.  I'll draw it up and add it to our backlog in the AppStore Team but if you have any thoughts around it let me know.

    I'll also include these...

    moving rules up and down, categorizing rules, filtering by category, moving categories up and down, searching by description, adding a comment field

    So anything else that comes to mind let me know. I'll also add export/import and do that using Excel or text.  Also add some sort of conversion utility to bring in rules from the out of the box to the new format... easy to see how much a simple idea can get out of hand very quickly!!

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
Children