restrict depth of word set calculation