Can you make a rule to pick up segments with specific origin?

Sometimes it would be important to see if there are segments with MT or NMT origin. Is it possible to write a rule to flag those?