Stop auto-correcting Numbers and special characters
See original GitHub issueHi again,
If I have the following string:
The support is 24/7, awesome!
It removes 24/7
. Is there a way to avoid deleting number
s and other special characters
such as"$£"
etc.?
Issue Analytics
- State:
- Created 5 years ago
- Comments:20 (8 by maintainers)
Top Results From Across the Web
Excel AutoCorrect: how to customize or turn off - Ablebits
Insert a special symbol of interest in a cell (Insert tab > Symbols group > Symbols). · Select the inserted symbol and press...
Read more >Turn off or on the special characters and symbols in MS Office ...
Special characters and symbols in MS Office Excel, Word, ... Autocorrection are an important part, you can also turn them off, on or...
Read more >AutoCorrect features in Excel - Microsoft Support
To prevent all automatic changes and replacements that AutoCorrect would make, do the following in this dialog box: Clear all the check boxes...
Read more >How to stop AutoCorrect and AutoFormat changes
How to stop AutoCorrect and AutoFormat changes ; 1. On the File tab, and then click Options: ; 2. In the Word Options...
Read more >Too Many Autocorrect Fails? How to Tweak Your Keyboard ...
On your iPhone or iPad, go to Settings > General > Keyboard. Let's address the elephant in the room right off the bat....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am able to preserve the number by using Python’s raw string notation for regular expression patterns, i.e.,
instead of
I think your backslashes
\
were treated as escape characters since you did not use raw string notation.6 mths
converted to6mths
because6
matches\d\w*\b
and is ignored. Then when two words are joined together to look for a possibly correct word (part ofword_segmentation
algorithm),6mths
matches\d\w*\b
as well and is ignored.solv
is correctedsold
instead ofsolve
because the frequency ofsold
(42979181) is higher than that ofsolve
(13452150) in the provided frequency dictionary.I
is correct toa
whilei
is preserved becausei
is an exact match ofi
(gets returned as a result immediately) whileI
is not an exact match ofi
(different case) so it is corrected based the rest of thelookup
algorithm anda
(9081174698) has higher frequency than that ofi
(3086225277).You could try to apply
lower()
to your input to preventI
from being corrected toa
.