Please enable JavaScript to use CodeHS

  • Autograded

Dictionary Search

In this project, students will learn how to import a text dictionary and use control structures, functions, and arrays to build their own word search and/or generator.

Medium

4 Hours

High School

Project Description

Have you ever played the Scrabble? Or Wordle? Or tried to solve a newspaper’s Jumble puzzle? All of these games ask a player to come up with a word within certain limitations, like limited letters or spaces available. And, to make it even more difficult, these words have to be real words found in a real dictionary.

In this project, you are going to build a program that helps users generate or check words in a dictionary. We’ll teach you a few specifics, like how to import a dictionary and make it searchable, but the final project is up to you. We encourage you to build something that is interesting and/or useful to you!

Below are a few ideas to start thinking about:

  • Ask a user for a word and print out all of the words that have that word in it.

  • Ask a user for letters and print out all of the possible words that can be made with those letters (letter order or word length doesn’t matter).

  • Ask a user for a word length and print out all of the words of that length.

  • Ask a user for specific letters, letter locations, and word length, and print out all of the possible words that fit that criteria.