Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 463023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:08:02+00:00 2026-05-12T23:08:02+00:00

I am working on a wiki bot for my communities wiki that uses the

  • 0

I am working on a wiki bot for my communities wiki that uses the DotNetWikiBot Framework; it is to find a word that is commonly a typo (such as “abilty”) and replaces them with the correction (such as “ability”).

This works as is is coded:

p.text = p.text.Replace(@"\b" + typoArray[x, 0] + @"\b", typoArray[x, 1]);

However this will replace “Abilty” with “ability” which is of course going to cause issues, but I cannot figure out how to preserve the case of the replaced word (so Abilty becomes Ability) unless the typo replacement is meant to be capitalized, no matter what it is replacing: januray to January

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:08:02+00:00Added an answer on May 12, 2026 at 11:08 pm

    I think you will do better using Regular Expressions from the System.Text.RegularExpressions namespace.

    Regex.Replace(str, “[A]”, “Z”); or some variant of it. Regular expressions are powerful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a fairly large CMS-like app that includes a forum, wiki pages,
Recently I've been working on a C++ prime generator that uses the Sieve of
I'm working to try and create a kind of wiki-esque app, in that when
I have been working on information extraction and was able to run standAloneAnnie.java http://gate.ac.uk/wiki/code-repository/src/sheffield/examples/StandAloneAnnie.java
Working with an undisclosed API, I found a function that can set the number
I'm working on a Game of Life clone (can't link wiki, as it's down).
I've been working with a new installation of the MoinMoin wiki software. As I
I'm working on coloring a map according to the four-color theorem ( http://en.wikipedia.org/wiki/Four_color_theorem )
I am working with ScrewTurn Wiki. It is pre-complied Version. So When I am
Using this wiki I have a dynamic dropdownlist working just fine. Instead of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.