how to determine intent