Skip to content

albiecr/text-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Typing SVG

📜 Description

A simple text analyzer that counts word frequency in user-provided text.

✨ Features

• Removes basic punctuation (.,!?,)
• Converts text to lowercase
• Counts frequency of all unique words in the text
• Allows querying frequency of a specific word

📋 Requirements

• Python 3.6 or higher

⚙️ Installation

• No special installation required beyond Python

• Clone the repository (if applicable):

git clone https://github.com/albiecr/text-analysis.git
cd text-analysis

🚀 Usage

• Run the script directly:

python TextAnalysis.py
• The program will:
    1. Prompt you to enter a text
    2. Show the formatted text (without punctuation and in lowercase)
    3. Display frequency of all words
    4. Allow searching for frequency of a specific word

🏗️ Code Structure

The TextAnalyzer class contains:

• init: Formats text (removes punctuation and converts to lowercase)

• freqAll: Returns a dictionary with frequency of all words

• freqOf: Returns frequency of a specific word

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

✉️ Contact

Albertina Rodrigues - [email protected]
Project Link: https://github.com/albiecr/text-analysis

🔮 Future Improvements

• Add support for more punctuation marks
• Implement case-sensitive analysis option
• Add stopwords filtering
• Create a GUI version

🤝 Contributing

Contributions are welcome! Please open an issue or submit a pull request.

  1. Fork the project

  2. Create your feature branch
    git checkout -b feature/AmazingFeature
  3. Commit your changes
    git commit -m 'Add some AmazingFeature'
  4. Push to the branch
    git push origin feature/AmazingFeature
  5. Open a pull request

About

TextAnalysis Python File

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages