WheatonCS / WheatonCS/Lexos

Replace Consolidation Feature with Pattern Replacement

Open
#1,020 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Scrubbing
Dominant language
Python
Stars
123
Forks
20
PR merge metrics
No merged PRs in 30d

Description

This proposal would be to replace the Consolidation feature with a more general Pattern Replacement Feature. The only real difference is that, instead of entering a, b: c (replace all occurrences of a and b with c), the user will enter a, b (replace all occurrences of a with b). That should be very easy to fix on the back end. We could then add a regex option so that the user could add a regex pattern 'a|b', 'c' (replace all occurrences of a OR b with c.

The addition of regex pattern matching will allow greater flexibility and solve problems like issue #956. And it should only require a few more lines of code.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing Consolidation feature and the backend path that handles its input; issue #956 provides a related problem to review. Done means replacing the current a, b: c behavior with a, b replacement and defining the proposed regex behavior, including how the user enables it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.