Jugaad
Jugaad Tool MITBeginnerDeveloper ToolsFree

Urdu-English-Word-Frequency-Analyzer

A Python command-line tool that counts words in English and Roman Urdu text, shows the top ten, and exports CSV results.

Stars
114
Forks
2
Last update
5 Oct 2026

Overview

The analyzer reads UTF-8 text files, identifies words with regular expressions, and counts their occurrences. It displays the ten most frequent words and saves the frequency results to results.csv.

Who it's for

Python beginners learning text processingStudents of computational linguisticsResearchers exploring bilingual vocabularyContent teams reviewing word usage

Tech stack

Python 3Regular expressions (re)collections.CounterFile I/OCSVUTF-8 text processing

Features and benefits

Key features

  • Processes English and Roman Urdu text.
  • Reads text files using UTF-8 encoding, with support for Urdu characters and multilingual text.
  • Identifies words using regular expressions.
  • Counts occurrences of each word.
  • Displays the ten most frequent words.
  • Exports frequency results to results.csv.
  • Accepts text-file input through a command-line interface.

Why it helps in Pakistan

  • Replaces manual word counting with a repeatable text-processing workflow.
  • Makes frequently used vocabulary easy to spot through top-ten results.
  • Saves word counts in CSV format for further review.
  • Provides a simple foundation for learning bilingual text processing.
  • Helps explore frequency patterns in English and Roman Urdu material.

Pakistan use cases

  • 01

    Pakistani university students can explore vocabulary patterns in English and Roman Urdu text assignments.

  • 02

    Local content teams can count repeated words in English or Roman Urdu drafts saved as text files.

  • 03

    NLP learners in Pakistan can use exported word counts as a starting point for further experiments.

  • 04

    Teachers can demonstrate regular expressions and word counting using the included English and Urdu sample files.

Requirements

Hardware
Check the official docs
Operating system
Check the official docs
Skills
Basic terminal use to run the documented Python commandsPreparing text files for analysis
Accounts needed
Check the official docs

Setup guide

Commands are copied from the project's README and official docs.

  1. 1

    Prepare the local environment

    Check the official docs. Python 3 is named, but installation, project download, and operating-system-specific setup are not documented.

    Not fully covered in the README. Check the official docs before running this step.

  2. 2

    Analyze the English sample

    Run python analyzer.py sample_en.txt.
  3. 3

    Analyze the Urdu sample

    Run python analyzer.py sample_urdu.txt.
  4. 4

    Review the results

    Read the ten most frequent words displayed in the terminal and review the exported results.csv file.

What it costs

SoftwareFree to self-host under the MIT licence.
HostingThe documented workflow runs locally. Hardware requirements and server hosting guidance are not stated; check the official docs before budgeting for hosting.

FAQ

Which languages can it analyze?

The README describes English and Roman Urdu analysis. It also states that UTF-8 processing supports Urdu characters and multilingual text.

What results does it produce?

It displays the ten most frequent words and exports word-frequency results to results.csv.

Does it translate text or detect sentiment?

No. It does not perform translation, sentiment analysis, semantic analysis, machine learning, language modeling, or large-language-model processing.

What input format does it use?

It accepts a .txt file through the terminal and reads it using UTF-8 encoding.

Can I use it as a learning project?

Yes. The README describes it as a foundation for learning text processing, exploring bilingual vocabulary, and preparing text for further NLP experiments.

Troubleshooting

The documented Python command does not run.

Check that Python 3 is available and review the terminal error output; see the official docs.

The input text file cannot be read.

Check the file path supplied to the command and confirm that the text file uses UTF-8 encoding; see the official docs.

CSV results are not available after running the analyzer.

Check the terminal output for errors and look for the documented output filename, results.csv; see the official docs.

The output does not explain meaning or sentiment.

This is a frequency-only analyzer. Semantic analysis and sentiment analysis are explicitly outside its current capabilities; see the official docs.

Get it set up for you

Don't want to install it yourself? A Jugaad maker can set up Urdu-English-Word-Frequency-Analyzer for your business. Payment is held in Safe Deal until it works.

No maker offers a setup gig for this yet. Post a request and makers will quote.

Post a setup request Paid through Safe Deal

Built by salikhussain71-code and contributors on GitHub. All credit goes to the authors. GitHub stats refresh daily. Jugaad does not host, copy or sell this code.

Is this your project?