Skip to content

v1.3.1

Compare
Choose a tag to compare
@davidlday davidlday released this 23 Aug 00:03
· 53 commits to main since this release
03576df

Changed

  • cli updates thanks to @slingload
    • cli now accepts multiple files for analysis:
    Usage: prosegrinder [OPTIONS] FILES...
    
      Setup the command line interface
    
    Options:
      -i, --indent INTEGER  Python pretty-print json indent level.
      -s, --save FILENAME   File to save output to.
      --help                Show this message and exit.
    • cli produces and array of analysis results:
    [
      {
        "filename": "shortstory.txt",
        "statistics": {
          "sha256": "5b756dea7c7f0088ff3692e402466af7f4fc493fa357c1ae959fa4493943fc03",
          "word_character_count": 7008,
          "phone_count": 5747,
          "syllable_count": 2287,
          "word_count": 1528,
          "sentence_count": 90,
          "paragraph_count": 77,
          "complex_word_count": 202,
          "long_word_count": 275,
          "pov_word_count": 113,
          "first_person_word_count": 8,
          "second_person_word_count": 74,
          "third_person_word_count": 31,
          "pov": "first",
          "readability_scores": {
            "automated_readability_index": 0.281,
            "coleman_liau_index": 9.425,
            "flesch_kincaid_grade_level": 8.693,
            "flesch_reading_ease": 62.979,
            "gunning_fog_index": 12.079,
            "linsear_write": 10.733,
            "lix": 34.975,
            "rix": 3.056,
            "smog": 11.688
          }
        }
      },
      {
        "filename": "copyright.txt",
        "statistics": {
          "sha256": "553bfd087a2736e4bbe2f312e3d3a5b763fb57caa54e3626da03b0fd3f42e017",
          "word_character_count": 222,
          "phone_count": 169,
          "syllable_count": 78,
          "word_count": 46,
          "sentence_count": 7,
          "paragraph_count": 16,
          "complex_word_count": 10,
          "long_word_count": 12,
          "pov_word_count": 1,
          "first_person_word_count": 1,
          "second_person_word_count": 0,
          "third_person_word_count": 0,
          "pov": "first",
          "readability_scores": {
            "automated_readability_index": 1.404,
            "coleman_liau_index": 8.073,
            "flesch_kincaid_grade_level": 6.982,
            "flesch_reading_ease": 56.713,
            "gunning_fog_index": 11.324,
            "linsear_write": 3.714,
            "lix": 32.658,
            "rix": 1.714,
            "smog": 9.957
          }
        }
      }
    ]