%% Remove Long Words from Document
% Remove the words with seven or greater characters from a document.

document = tokenizedDocument("An example of a short sentence");
newDocument = removeLongWords(document,7)

% Copyright 2012 The MathWorks, Inc.