This project will test if your words are a haiku.
Specification | Example Input | Example Output |
---|---|---|
check to see if words are inputted | this is my input | this is my input |
detect number of vowels in inputted words | apple | 2 |
subtract silent vowels | apple | appl |
if diphthong is present, subtract vowel | look | lok |
count number of vowels for total syllable count | awesome | wesom = 2 syllables |
divide between two middle consonants | apple | ap-pl |
divide before a single middle consonant | report | re-port |
divide before the consonant before an "le" | tickle | tic-kle |
split off compound words | houseboat | house boat |
return whether or not its a haiku | syllable count: 5 - 7 - 5 | true |
First, clone this repository to your desktop
- If using the Terminal, navigate to the desktop in the Terminal (entering "cd desktop" in the Terminal) and then entering "git clone" followed by the url to this repository.
- Once the project directory is cloned to your desktop, navigate to the directory in the terminal by entering "cd" followed by the name of this repository in the Terminal.
- Confirm that you have navigated to the project directory by entering "pwd" in the Terminal.
Next, install npm in the project directory
- At the root directory for this project, enter the command "npm install"
- Open the contents of the directory in a text editor or IDE of your choice (e.g., to open the contents of the directory in Visual Studio Code, enter the command "code ." in the Terminal).
- Open index.html in a browser of your choice (e.g., Google Chrome).
Git, HTML, CSS, JavaScript, jQuery, npm, webpack
This webpage is licensed under the MIT license.
Copyright (c) 2020 Zakkrey Short, Keturah Howard