Text this: Danger theory inspired artificial immune system for pattern recognition