This program takes standard text message speak and converts it to English. I wrote this for fun and to touch up on my use of while loops and nested if statements. It is definitely not optimized and does not use regexp or other MATLAB built in functions that would make it shorter and faster.
The idea for this submission came from ImageAnalyst in this thread:
%Enter text messages in the format of:
% txt2English('plzzZZz dnt lol', 'lemme kno') %Note comma delimination.
% txt2English 'Wut R u dOIn' nothing 'i wnt 2 go out 2nite' %More robust entry method.
% Use single quotes to group whole texts or sentences.
% Punctuation is ok.
% Cannot distinguish between: [to two too], [your you're], [for four] but will make a guess and give warning.
% To add words of your own at the end of the dictionary cell array:
% ;'incorrect' 'correct';...
Sean de (2021). txt2English (https://www.mathworks.com/matlabcentral/fileexchange/27574-txt2english), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!