From the course: PHP Practice Challenges
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Text processor
- [Instructor] Let's do some text analysis. Given a long block of text, actually a transcript from a podcast episode of mine, I want you to analyze it to determine the most common words, excluding filler or stop words. Here are the requirements. Count each word provided in the transcript. Sort the words from most common to least common. Exclude filler or stop words like a, an, the, and, uh, umm, and is. And you can include timestamps that will be in the transcript as well as other uncommon terms, like names and jargon. The goal here is to get a relatively good idea of what the most common word in the transcript or any provided text is. As always, your solution may differ from mine, and that's okay. Why don't you pause the video here, and when we come back, we'll look at my solution. (upbeat music) Okay, so here is the transcript. It's fairly long, but not my longest. And in here, the file, the provided file, most of the code is provided. You just need to write the function count…
Contents
-
-
-
Event capacity: Compare two numbers3m 18s
-
(Locked)
Flip a coin2m 40s
-
(Locked)
High card6m 22s
-
(Locked)
Fizz Buzz3m 53s
-
(Locked)
Given a birth date, determine age3m 54s
-
(Locked)
Determine who's older: Comparing objects4m 13s
-
(Locked)
Sort people by age: Sorting an array of objects5m 35s
-
(Locked)
Extend a class6m 17s
-
Process a simple contact form7m 10s
-
(Locked)
Store and retrieve data from a cookie4m 24s
-
(Locked)
Send an email6m 6s
-
(Locked)
Save to a file7m 44s
-
(Locked)
Create functions in a namespace5m 7s
-
(Locked)
Build a calculator form5m 17s
-
(Locked)
Write a number guessing game10m 19s
-
(Locked)
Generate a form from an array of values20m 10s
-
(Locked)
Retrieve and display data from a provided REST API6m 52s
-
(Locked)
The Dutch National Flag Problem4m 13s
-
(Locked)
Convert CSV to JSON5m 10s
-
(Locked)
Encrypt then decrypt a string6m 32s
-
(Locked)
Write a login form8m 7s
-
(Locked)
Search an HTML page for information on it6m 1s
-
(Locked)
Text processor7m 33s
-
(Locked)
Associated words7m 36s
-