Docs and code style for checkApplicable.
Remove onStateUpdate from language plugin. It is based on command now.
Replace  onStateUpdate( state ) with refresh().
Code style.