Skip to content

fabriciohod/WordCounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Word Counter

The Goal

Read all the subtitles in the folder "legendas" and count each word and returns a object containing a word , times that it appeared in all files example:

 { word: 'i', qtd: 2491 },
 { word: 'you', qtd: 2414 },
 { word: 'the', qtd: 2216 },
 { word: 'to', qtd: 1749 },
 { word: 'a', qtd: 1646 },
 { word: 'and', qtd: 1109 },
 { word: 'it', qtd: 971 },
 { word: 'that', qtd: 920 },
 { word: 'is', qtd: 903 },
 { word: 'of', qtd: 859 },
 { word: 'in', qtd: 750 },
 { word: 'this', qtd: 687 },

This project was built during a cruse in Cod3r.com.