An open API service indexing awesome lists of open source software.

https://github.com/bl33h/byletter

Categorize words by their starting letter in a dictionary.
https://github.com/bl33h/byletter

algorithms data-structures dictionary logic python text-processing word

Last synced: 2 months ago
JSON representation

Categorize words by their starting letter in a dictionary.

Awesome Lists containing this project

README

          

# byLetter
A script that categorizes a list of words based on their starting letter. It provides a convenient way to organize words alphabetically by creating a dictionary where each key represents a letter, and the corresponding value is a list of words starting with that letter.




pic




Files
Features
How To Use

## Files

- src: the file that implements de solution.

## Features
The main features of the application include:
- Categorization by Letter: The script categorizes a list of words based on their starting letter. It creates a dictionary where each key represents a letter, and the corresponding value is a list of words starting with that letter.
- Dynamic Addition: The script dynamically adds words to the appropriate lists in the dictionary. If a list for a specific letter does not exist yet, it is created.
- Flexible Input: The code can handle any list of words provided as input. It is not limited to a predefined set of words.
- Customizable Output: The script prints the resulting dictionary, displaying the categorized words grouped by their starting letter. This output can be further processed or modified as per the requirements of the application using the script.

## How To Use
To clone and run this application, you'll need [Git](https://git-scm.com) and [Python](https://www.python.org/downloads/) installed on your computer. From your command line:

...
```bash
# Clone this repository
$ git clone https://github.com/bl33h/byLetter

# Open the folder
$ cd src

# Run the app
$ python byLetter.py

```