Skip to content

Ranks words from a text file in order of frequency of appearance.

Notifications You must be signed in to change notification settings

qlint/word-rank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

word-rank

This project ranks the frequency of words in a text file in order descending order,that is, from words appearing the most to the least. It is written in pure PHP.

getting-started

Simply upload your files in the docs folder and have the first file named one.txt . The other file names don't matter.

The code is divided in two segments. The first segment only reads the first file - one.txt - and ranks all the words indicating the number of appearances.

The second segment reads through all the files and outputs the total ranks in order of number of appearances of all the words from all the files in the docs directory.

note

The output has been limited to 100 to for easy readability when large text files are used.

About

Ranks words from a text file in order of frequency of appearance.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages