Skip to content

JonathanReeve/color-word-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color Word Analyzer

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.

Running the Project Gutenberg Analysis

(Requires pg-text-7.db, from corpus-db.)

  1. Install Nix, if you don't have it already, with:
curl https://nixos.org/nix/install | sh
  1. Compile the CLI, with:
nix-shell --run "cabal build"
  1. Run the python script, with:
python3 pg-analysis.py

Technical details

This 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.

About

Text analysis for color words. Experimental.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages