Skip to content

nminaya/grammar-nazi-bot

Folders and files

NameName
Last commit message
Last commit date
Oct 3, 2024
Dec 11, 2024
Jan 20, 2025
Feb 12, 2025
Dec 12, 2024
Jan 20, 2025
Aug 12, 2020
Oct 15, 2020
Dec 9, 2021
Dec 10, 2021
Sep 8, 2020
Oct 4, 2020
Dec 11, 2024

Repository files navigation

grammar-nazi-bot

Bot that corrects spelling mistakes.

Telegram Bot

@grammarNz_Bot: This bot analyzes each message that is sent in a Telegram chat, and if it finds any spelling or grammar errors, it replies to the message with its corrections using the asterisk symbol (*).

Twitter Bot

@GrammarNBot Analyzes the tweet you're replying to mentioning the bot, and if it finds any spelling or grammar errors, it will tweet a reply with its corrections using the asterisk symbol (*).

Discord Bot (Disabled, see #344)

Add Bot to Server: This bot analyzes each message that is sent in a Discord channel, and if it finds any spelling or grammar errors, it replies to the message with its corrections using the asterisk symbol (*).

Features

Twitter Bot

  • Evaluates Tweets where the bot is mentioned.
  • Multiple language support (English and Spanish).
  • Follow back automatically.

Telegram and Discord Bot

  • Configurable grammar analyzer algorithm or provider.
  • Multiple language support (English and Spanish).
  • Strictness Level.
  • Whitelist Words.

Take a look at the Telegram Bot and Discord Bot documentation.

Solution Design

The solution design focuses on a basic Domain Driven Design techniques and implementation, while keeping the things as simple as possible but can be extended as needed. Multiple assemblies are used for separation of concerns to keep logic isolated from the other components. .NET 9 C# is the default framework and language for this application.

Assembly Layers

  • GrammarNazi.Domain - This assembly contains constants, entities and interfaces.
  • GrammarNazi.Core - This assembly contains all domain implementations.
  • GrammarNazi.Tests - This assembly contains unit test classes based on the xunit test framework.
  • GrammarNazi.App - This assembly is the web-based application host.

License

This project uses the following license: MIT