%% Correct Spelling of Words in Documents
% Create a tokenized document array.

str = [
    "A documnent containing some misspelled worrds."
    "Another documnent cntaining typos."];
documents = tokenizedDocument(str);

% Correct the spelling of the words in the documents using the correctSpelling function.

updatedDocuments = correctSpelling(documents)

% Copyright 2019 The MathWorks, Inc.