/Text-Analysis-Arrays-using-C

Text Analysis Grade Level Comprehension Ranking Program.

Primary LanguageCMIT LicenseMIT

Text Analysis: Arrays using C

  • Readability: Estimation of grade level required to comprehend any text that is inputted via command line
  • I wrote all the code in each file. No code was provided by the instructor.

Readability Program Demo

💡Lessons Learned

  • Working with ASCII values, which is one step above binary code (lowest level)
  • Strings are an abstraction for an array of characters
  • Applying knowledge of null terminating character at end of array of characters in C
  • Deconstructing sentences into words and words into characters

🕹 How to Use

To run this project locally:

  • In your terminal, navigate to the Readability folder and run the following commands
$ clang -o readability readability.c
$ ./readability

The program will prompt you input your sample text after Text:. Note that the maximum character count is 350.

$ Text: A large class of computational problems involve the determination of properties of graphs, digraphs, integers, arrays of integers, finite families of finite sets, boolean formulas and elements of other countable domains.

The expected result for the above example is

$ Grade 16+