AI pattern matching versus context