Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

While writing some predicates for collection filtering I have stumbled over the choice of the right words for the relation of the subject and the predicate (English is a foreign language for me). What I ended up writing was "Subjects matching this predicate..."

This seems to be incorrect, since predicates are functions and not regular expressions. But saying "Subjects for which this predicate returns true..." sounds awkward to me as well..

So what would be the correct term?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

I would use "Subjects satisfying this predicate".

Matches implies a pattern, rather than a condition. And "for which this predicate returns true," although the most accurate, sounds more technical than I think you intend.

Edit: Mike makes a good point that predicate is also very technical. Perhaps "Subjects satisfying this condition" is a better option.

share|improve this answer
Satisfying is the word he was looking for, 'meeting' also is often used for the same meaning as well, and occasionally someone will use 'in' as referring to the set that satisfies the predicate –  Jimmy Hoffa Nov 19 '12 at 16:31
Thanks, pdr. "Satisfying" sounds right. –  kostja Nov 19 '12 at 16:38

I think the terminology really depends on your intended audience.

If we're talking about code comments and API documentation then I would say your suggestion would be very accurate and understandable.

"For which this predicate returns true."

If we're writing end user documentation I would avoid the word predicate all together and stick with "filter" and "match".

"Subjects matching your filter."
share|improve this answer
+1 Thanks Mike, I guess I wanted something inbetween the two :) –  kostja Nov 19 '12 at 16:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.