

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Retrieval Augmented Generation
incomplete
2: What Is Search?
incomplete
3: Project Overview
incomplete
4: Keyword Search
incomplete
5: Text Processing
incomplete
6: Punctuation
incomplete
7: Tokenization
incomplete
8: Stop Words
incomplete
9: Stemming
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Exact matching, frankly, isn't particularly useful. It's rare that a user searching for "The Alien" wants us to exclude results like:
Keyword search doesn't need to be exact; in fact, it shouldn't be. To improve keyword search, we need to do some text processing. For example, we want bear, Bear, and bear. to be treated as the same keyword. We'll do that in a few steps.
"The Matrix" becomes "the matrix""HE IS HERE" becomes "he is here""Hello, world!" becomes "hello world""sci-fi" becomes "scifi""the matrix" becomes ["the", "matrix"]"hello world" becomes ["hello", "world"]["the", "matrix"] becomes ["matrix"]["a", "puppy"] becomes ["puppy"]["running", "jumping"] becomes ["run", "jump"]["watching", "windmills"] becomes ["watch", "windmill"]Webflyx users can't be bothered to use the shift key!
Update your matching logic to call .lower() on both the search query and the movie titles before comparing them.
Run and submit the CLI tests.