Tested with Python 3.
BeautifulSoup is required to parse the HTML that the individual messages are in.
To use, first download a copy of your Facebook data. Then, run this script with the directory of all of your messages
(usually something like /messages/
). The analysis will come out through the standard output in CSV format, for easy
importing into your favourite spreadsheet for analysis.
I would recommend adding separate columns after importing into your favourite spreadsheet for analysis. You may also (if you want to) train a neural network on the natural language (however basic and abbreviated).