add word-frequency application developed with svelte

pull/110/head
borntofrappe 6 years ago
parent 00512b1991
commit 2ee64fb23d

@ -11,33 +11,34 @@ along with its frequency, in descending order by frequency.
## User Stories ## User Stories
- [ ] User can see a text input box, a 'Translate' button, and a word - [ ] User can see a text input box, a 'Translate' button, and a word
frequency table. frequency table.
- [ ] User can enter text (or cut and paste) into the input box. This input - [ ] User can enter text (or cut and paste) into the input box. This input
box must allow the entry of large blocks of text (maximum of 2048 characters). box must allow the entry of large blocks of text (maximum of 2048 characters).
- [ ] User can click the 'Translate' button to analyze the word frequency in - [ ] User can click the 'Translate' button to analyze the word frequency in
the text that has been input. the text that has been input.
- [ ] User can see an error message if the text input box is empty. - [ ] User can see an error message if the text input box is empty.
- [ ] User can see the word frequency table populated when the 'Translate' - [ ] User can see the word frequency table populated when the 'Translate'
button is clicked. Each row in the table contains a word and the number of times button is clicked. Each row in the table contains a word and the number of times
it occurs in the input text. it occurs in the input text.
- [ ] User can see the word frequency table ordered in descending sequence - [ ] User can see the word frequency table ordered in descending sequence
by word frequency. by word frequency.
## Bonus features ## Bonus features
- [ ] User can see a graphical representation of the word frequency in a - [ ] User can see a graphical representation of the word frequency in a
bubble chart, column chart, or any other form of graphical representation the bubble chart, column chart, or any other form of graphical representation the
developer chooses. developer chooses.
- [ ] User may choose to enter the URL of a web page whose content is to be - [ ] User may choose to enter the URL of a web page whose content is to be
analyzed instead of manually entering text. (Hint: See the analyzed instead of manually entering text. (Hint: See the
[Podcast Directory](../2-Intermediate/Podcast-Directory-App.md) application for ideas). [Podcast Directory](../2-Intermediate/Podcast-Directory-App.md) application for ideas).
## Useful links and resources ## Useful links and resources
- [Bag of Words Model (Wikipedia)](https://en.wikipedia.org/wiki/Bag-of-words_model) - [Bag of Words Model (Wikipedia)](https://en.wikipedia.org/wiki/Bag-of-words_model)
- [Semantic Analysis (Wikipedia)](https://en.wikipedia.org/wiki/Sentiment_analysis) - [Semantic Analysis (Wikipedia)](https://en.wikipedia.org/wiki/Sentiment_analysis)
## Example projects ## Example projects
- [Word Frequency Counter](https://codepen.io/maxotar/pen/aLrwJM) - [Word Frequency Counter](https://codepen.io/maxotar/pen/aLrwJM)
- [Bubble Chart](https://codepen.io/Quendoline/pen/pjELpM) - [Bubble Chart](https://codepen.io/Quendoline/pen/pjELpM)
- [Svelte Word Frequency by Gabriele Corti](https://codepen.io/borntofrappe/pen/QWWWqQM)

Loading…
Cancel
Save