Post

I am very excited to release WordLevel, an open source Python package for comparing texts at the word level! wordlevel.dev WordLevel makes it easy to compare texts with measures ranging from the Jensen-Shannon divergence to dictionary-based sentiment, and visualize them as word shift graphs.

WordLevel is designed to be fast and reliable. It has a modern Python interface with a declarative API powered by Polars. You can use it with any text that you can tokenize, and it integrates with any Narwhals-supported dataframe. The word shift graphs are publication ready and fully customizable.

I’ve been working on this passion project for a year and a half. If you have been following my work for a while, you may recognize this as a new and improved version of Shifterator, the first package I developed for word shift graphs over 8 years ago

0 reposts2 likes