add ability to filter words by learned flag