This is web app and CLI for analyzing color words in a text. Watch it in action at http://colors.jonreeve.com. Still highly experimental, and not currently ready for public use.
(Requires pg-text-7.db, from corpus-db.)
- Install Nix, if you don't have it already, with:
curl https://nixos.org/nix/install | sh- Compile the CLI, with:
nix-shell --run "cabal build"- Run the python script, with:
python3 pg-analysis.pyThis program is written in Haskell, using
- Scotty (a web framework)
- Lucid (an HTML DSL)
- Clay (a CSS DSL)
- PlotlyHS, a Haskell interface to the Plotly data visualization library.
- I'm actually using my own fork of PlotlyHS, which adds a couple of new features.
The web interface is the main way of using this program, but it can also be used via CLI or just by using it as a Haskell library.