%0 Journal Article %T lsemantica: A command for text similarity based on latent semantic analysis %A Carlo Schwarz %J The Stata Journal %@ 1536-8734 %D 2019 %R 10.1177/1536867X19830910 %X In this article, I present the lsemantica command, which implements latent semantic analysis in Stata. Latent semantic analysis is a machine learning algorithm for word and text similarity comparison and uses truncated singular value decomposition to derive the hidden semantic relationships between words and texts. lsemantica provides a simple command for latent semantic analysis as well as complementary commands for text similarity comparison %K st0552 %K lsemantica %K machine learning %K latent semantic analysis %K latent semantic indexing %K truncated singular value decomposition %K text analysis %K text similarity %U https://journals.sagepub.com/doi/full/10.1177/1536867X19830910