Ironically, Alfred Binet, one of the creators of the IQ test, intended the test to serve precisely the opposite function. In fact, he originally designed it (on commission from the French government) exclusively to identify children with special needs so they could get appropriate forms of schooling.

