I was trying to debug some inflection failure in the grammar rules and found that this code change was very helpful. In rule tests the uninflected word comes in parenthesis but other than that you have to dig into rule regex and word tags to figure out the problem.
This patch provides much more explicit info.
lt-warn-inflect-failure.patch (1.4 KB)
As the default logging level is WARN I had to make it warning to be visible.
I think this would definitely be helpful for the rule tests, but actually may come handy even in production deployments (you could see which words your rule failed to inflect).
So if this is helpful we could:
- make this a INFO and change unit test default level to INFO (and in production admin can chose to turn this on separately)
- make this WARN and always show inflection failures