spellcheck: allow the spellcheck object to be externally provided