npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rolling-classify-visualizer

v0.1.4

Published

![banner](https://github.com/stylo-explorer/rolling-stylometry-explorer/raw/master/docs/header.png)

Downloads

4

Readme

Rolling Stylometry Explorer

banner

The Rolling Stylometry Explorer is a web application to visualize rolling.classify results in the analyzed text. It was developed as a tool for use with the stylo R library by the Computational Stylistics Group. Take a look here for the Live-Demo and the full documentation.

License: MIT PRs Welcome

Authors: Jonas Osburg, Lilly Osburg

Key Features

  • Display your rolling.classify results directly in the text
  • Switch easily between different analyses and MFW values
  • Use the Tooltip Feature to see the probabilities for each author
  • Use the Gradient Feature and have the security of the authorship attribution displayed directly in the text (still work in progress)
  • Keep track of the configurations of the various analyses displayed in the Rolling Stylometry Explorer - transfer the configurations and have them displayed directly in the Explorer

How to use

  1. Download the Rolling Stylometry Explorer
  2. Prepare your corpus
  3. Move the create_json_rolling.classify into the folder containing the corpus. Paste your rolling.classify configuration into the create_json_rolling.classify file and execute it. It will perform the rolling.classify analysis you configured and generate a classification.json file with the results.
  4. Execute the json-consolidate.tx file. Add the file path to the classification.json file(s). Follow the further instructions in the shell to provide information about the configurations, the analyzed text and possible authors. json-consolidate will then generate a output.json file.
  5. Move the generated output.json file to ~/rolling-classify-visualizer/src/assets
  6. Implement the Rolling Sylometry Explorer on your website (or try it out here)

If you want to integrate multiple analyses into the Rolling Stylometry Explorer, repeat steps 1-3 and then pass multiple file paths

How it works

Rolling.classify performs a windowing procedure and divides the text into short, overlapping sections. Rolling.classify then uses a machine learning algorithm to assign an author to each section. The Rolling Stylometry Explorer divides the text into the same sections as rolling.classify. The assignment made by rolling.classify is then made visible in the text by color highlighting. Each author is assigned a color. The most probable author for the corresponding text section is determined using the probabilities calculated by rolling.classify.

How to Contribute

Just open a pull request :smile_cat:

How to Cite

In case you want to cite us (we would appreciate it!)

Credits & Acknowledgements

  • The Rolling Stylometry Explorer is designed as a helpful tool for interpreting results from the stylo R library by the Computational Stylistics Group
  • The ReadMe was inspired by the NSGIF ReadMe
  • Icons by Material Design
  • Thanks to our Beta-Tester Christoph Schmidt-Petri

Useful Links

  • Resources offered by the Computational Stylistcs Group to start first rolling.classify analyses and try out stylo R and the Rolling Stylometry Explorer
  • If you want to work with rolling.classify you should have a look at this blog post on Rolling Stylometry by Maciej Eder

License

License: MIT