Git Product home page Git Product logo

writing-style-analyzer's Introduction

Writing-Style-Analyzer

This program reads a report (running text) and by utilizing a Binary Search Tree issues warnings on style and partially correct bad style. A statistical summary with the following information:

  • Total number of words in the report
  • Number of unique words
  • Number of unique words of more than three letters
  • Average word length
  • Average sentence length
  • An index (alphabetical listing) of all the unique words

Issues a warning in the following cases:

  • Word used too often: lists each unique word of more than three letters if its usage is more than 5% of the total number of words of more than three letters.
  • Sentence length: writes a warning message if the average sentence length is greater than 10.
  • Word length: writes a warning message if the average word length is greater than 5.

Data Structures A Binary Search Tree of unique words in the report, created as the file is read. If a word is not in the list, puts it there. If it is, increments a counter showing how many times the word has been used.

Input From the keyboard: The name of the file containing the text to be analyzed. From the file: The report to be analyzed.

Output The name of the input file The statistical summary of the report The style warnings

writing-style-analyzer's People

Contributors

mariiaromaniuk avatar

Watchers

James Cloos avatar  avatar

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.