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

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