Code Monkey home page Code Monkey logo

latexwordstats's Introduction

LatexWordStats

Display the percentage that each single word represents in a LaTeX document.

Usage

The -n argument (required) passes the document's name, and the -m argument (optional, default is 20) the maximum number of unique words to be displayed.

Run with:

$ python LatexWordStats.py -n=document.tex -m=10

which results in:

Number of unique words: 1944
Total number of words: 16536

  0.  1210     (7.32%) - the
  1.   461     (2.79%) - in
  2.   431     (2.61%) - of
  3.   317     (1.92%) - a
  4.   313     (1.89%) - and
  5.   304     (1.84%) - to
  6.   304     (1.84%) - for
  7.   241     (1.46%) - is
  8.   176     (1.06%) - clusters
  9.   165     (1.00%) - by
Sum percentage: 23.7%

Word lengths distribution:
 1  ++ (317)
 2  ++++++++++++++++++++ (2602)
 3  ++++++++++++++++++++++++++++++ (3823)
 4  ++++++++++++++++++ (2342)
 5  ++++++++++++++ (1752)
 6  +++++++++++ (1348)
 7  +++++++++ (1154)
 8  ++++++++ (1071)
 9  ++++++ (787)
10  +++++ (586)
11  +++ (383)
12  + (129)
13  + (123)
14  + (36)
15  + (83)

latexwordstats's People

Contributors

gabriel-p avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

phdtai geor7

latexwordstats's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.