Skip to content

Add top-words command to find top words in a string. - #61

Merged
codepiyusss merged 2 commits into
codepiyusss:mainfrom
gtref:main
Oct 23, 2026
Merged

codepiyusss merged 2 commits into
codepiyusss:mainfrom
gtref:main

Conversation

@gtref

@gtref gtref commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Implemented fixit top-words TEXT --n 3. It counts words case-insensitively, treats punctuation as separators, prints word: count, and preserves first-seen order for ties. --n defaults to 3.

Related issue

Closes #27

Checklist

  • I commented on the issue first and was assigned
  • I removed the xfail marker (if fixing a bug)
  • I added or updated tests
  • pytest passes locally
  • This PR only addresses one issue

Signed-off-by: G-type <162748908+gtref@users.noreply.github.com>
@gtref
gtref marked this pull request as ready for review October 22, 2026 19:22
@gtref

gtref commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

@codepiyusss Is this PR all good?

codepiyusss added a commit that referenced this pull request Oct 23, 2026
@codepiyusss
codepiyusss merged commit 2f40714 into codepiyusss:main Oct 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: add a top-words command

2 participants