Automatic dictionary compilation when corpus file has changed