Skip to content

C Program that analyzes the frequency of a set of keywords in a given text document. Returns frequency per 1000 words and total number of occurrences.

License

Notifications You must be signed in to change notification settings

xman343/keyword-frequency-analyzer

Repository files navigation

keyword-frequency-analyzer

C Program that analyzes the frequency of a set of keywords in a given text document. Returns textual analysis metrics including:

  • total word count
  • frequency of each keyword per 1000 words
  • total number of occurrences of each keyword
  • average word length
  • average sentence length (in words).

These metrics when assessed over a broad number of documents of the same authorship can be used to generate an author's stylistic thumbprint, which serves as a powerful research tool in many applications of textual analysis, such as when determening the likely authorship of an anonymous text.

Notes:

  • Number of keywords and length of each keyword are hardcoded in the KEYS and KEYLEN macros, respectively.
  • Unless text file is within same directory as the program, include the full filepath when prompted for the document's file name.

Questions? Contact aleatherwood518@gmail.com

  • Xander Leatherwood

Special thanks to Ed Crotty.

About

C Program that analyzes the frequency of a set of keywords in a given text document. Returns frequency per 1000 words and total number of occurrences.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages