Questions tagged [flesch-kincaid]

The Flesch/Flesch–Kincaid readability tests are designed to indicate comprehension difficulty when reading a passage of contemporary academic English. There are two tests, the Flesch Reading Ease, and the Flesch–Kincaid Grade Level.

16 questions
7
votes
4 answers

Flesch-Kincaid Readability: Improve PHP function

I wrote this PHP code to implement the Flesch-Kincaid Readability Score as a function: function readability($text) { $total_sentences = 1; // one full stop = two sentences => start with 1 $punctuation_marks = array('.', '?', '!', ':'); …
caw
  • 30,999
  • 61
  • 181
  • 291
3
votes
1 answer

Flesch-Kincaid Readability in Asp.Net

I'm working on an asp.net content management system and we need to have Flesch-Kincaid grade level stats available to the users. I've done quite a bit of searching and I haven't found any viable ways to implement this. The closest I've come is the…
miniMan
  • 53
  • 1
  • 6
2
votes
1 answer

Using Microsoft.Office.Interop.Word in asp.net

I'm attempting to leverage the Microsoft.Office.Interop.Word dll in my asp.net application. Long story short, an internal web based document management/editing system requires access to a MS Word flesch-kincaid value on an ad-hoc basis. I have no…
miniMan
  • 53
  • 1
  • 6
2
votes
4 answers

Flesch-Kincaid readability test

Are there any opensource .Net libraries that handle Flesch-Kincaid readability calculations? Wiki: http://en.wikipedia.org/wiki/Flesch-Kincaid_readability_test
Luke G
  • 1,741
  • 6
  • 23
  • 34
2
votes
0 answers

How to solve 'unhashable type error: 'Series' when adding new variable to dataframe that measures readability of FOMC statements

I am looking to calculate the Flesch-Kincaid grade level score of FOMC Statements. When trying to add a new variable for the Flesch-Kincaid score to the dataframe which includes FOMC Statements, I am getting an error which says: "unhashable type…
2
votes
1 answer

Flesch-Kincaid readability test in python

I need help with this problem I'm having. I need to write a function that returns a FRES (Flesch reading-ease test) from a text. Given the formula: In other words my task is to turn this formula into a python function. this is the code from the…
Ovaflow
  • 111
  • 1
  • 14
1
vote
0 answers

What type of Jekyll plugin would a Flesch-Kincaid caclulator fall under?

I'm wanting to write my first Jekyll plug-in. I've recently come across the flesch-kincaid algorithm for determining general reading level. What I'm thinking is to write something that adds a data attribute to each

tag or any element marked with…

Moxxi
  • 39
  • 7
1
vote
1 answer

Flesch-Kincaid Test (java)

I'm having trouble running my code. The problem seems to be at the switch (inputText.charAt(x)). It will not run and is causing me a huge headache. I'm a beginner so can someone please help me out? package project_02; import java.io.*; import…
DEstrda
  • 11
  • 2
1
vote
1 answer

Counting Syllables in Paragraph with Javascript

I'm working on a project that requires me to return the Flesch Readability Index for text entered in an input box. The formula is as follows: 206.835-85.6(number of syllables / number of words)-1.015(number of words / number of sentences) I've…
1
vote
1 answer

Batch process pdfs to do a Flesch-Kincaid readability test

I have about 1800 PDF files that I have to extract Flesch-Kincaid grade level scores from. Does anyone have any ideas as to how I should best approach this? I need a score per PDF.
Joe
  • 13
  • 2
0
votes
0 answers

'_io.TextIOWrapper' object has no attribute 'replace'

I'm trying to look at the readability scores for a text file using this Python code: posts = open("/Users/jchavis/Desktop/Data/posts.txt","r") readability_scores = Textatistic(posts).scores flesch = readability_scores['flesch_score'] print('The…
JC91
  • 11
  • 3
0
votes
1 answer

How to count consecutive vowels in a text file in Python

I'm new to programming in python and I have a challenge that I've been attempting for a few days now but I can't seem to figure out what is wrong with my code. My code take a text file and tells me how many sentences, words, and syllables are in the…
Aces Radix
  • 55
  • 3
0
votes
0 answers

Returning a FRES (Flesch reading-ease test) of a text

I am trying to implement a python function that returns a Flesch-Kincaid readability test of a text by using this formula from this wiki: Flesch reading-ease test I also came across a question with the same objective as I do that was answered:…
0
votes
1 answer

Converting Readability formula into python function

I was given this formula called FRES (Flesch reading-ease test) that is used to measure the readability of a document: My task is to write a python function that returns the FRES of a text. Hence I need to convert this formula into a python…
Ovaflow
  • 111
  • 1
  • 14
0
votes
0 answers

c++ parsing a text file using getline()

I am preparing a simple program that is supposed to take a file and then check for instances of certain characters ( spaces, some sentence delimiters and so on ). In the code below, I have the file open. I was able to get delimiters working by…
1
2