core.vocabulary: collect words when leaving edit mode