The other day I stumbled across the Wikipedia entry for Halstead software complexity and became curious about how the language Perl would measure up.
Now I knew the adage that "only perl can parse perl", but I also knew about the PPI set of modules on the CPAN. So I got to reading/experimenting...
Continue reading Halstead Software Complexity of Perl Code...
Today I decided to revisit the Bach Choral Harmony data set and look at chord progression transitions.
In order to do this I wrote a small program that tallies the movement from one chord to another, and then outputs a Graphviz dot file that can be turned into an image.
Continue reading Bach Choral Harmony Network Diagrams...
I decided to write my own sentiment analysis library called Lingua::EN::Opinion and use it to investigate the KJV Bible Book of Revelation.
Continue reading Book of Revelation Sentiment Analysis...
How do the books of the KJV Bible compare to each other word for word? Are Old Testament books more similar to other Old Testament books? Same for the New Testament? What about the Greek (Nestle-Aland 26th/27th edition) translation of the New Testament?
Naturally, I wrote a little perl program of the classic NLP measure to tell me: cosine-similarity. It is not the most efficient but it works perfectly!
Continue reading Bible Books Cosine Similarity...
This weekend I harvested 231 State of the Union addresses up to 2017 and put them through NLP processing.
Continue reading Linguistic Analysis of the State of the Union Addresses...