Pattern classification to reduce the possible space of player character behaviour to something that we can manage and write responses to. Really it's more or less the same concept as a Hopfield network, but more advanced and likely much more accurate.