LingGym: How Far Are LLMs from Thinking Like Field Linguists?