duck test
(DUK TEST) noun
- A form of abductive reasoning, application of intuition, or common sense regardless of technical parameters, to identify an ostensibly unknown subject by observing that subject's characteristics. The duck test applied: it ran on a schedule, scraped our pages and ignored robots.txt, so it was a crawler.
Origin
From the expression if it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck.
In practice
Use the duck test to classify unknown traffic, accounts or components by observed behaviour when labels are missing. Treat the result as a likely answer to verify, not proof.
Say to your AI
Apply the duck test to these log entries. Say what kind of client each one most likely is, based only on observed behaviour, and state how confident you are.
In plain words
- if it acts like one it probably is one
- judging something by how it behaves
- it looks and sounds like the real thing
- working out what it is from its traits
See also giggle test rubber duck debugging duck typing rubber duck
Adapted from Wiktionary (CC BY-SA 4.0).