Estonia's government faced a costly error due to a wording mistake in legislation. Now, AI is being …