question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Words that shouldn't be fixed

See original GitHub issue

I think that you should check if the word is inside of a quotation before fixing it.

For example:

>>> import contractions
>>> contractions.fix("you're happy now")
'you are happy now' # works fine
>>> contractions.fix('I like the letter "u"')
'I like the letter "you"' # "u" should stay "u"

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kootenpvcommented, Jun 15, 2021

Difficult to know which quotes belong to each other though… Example: “what to” “replace here”

I mean, maybe by counting the number of "?

I don’t know it was an idea but you could let the user do it by himself and don’t change anything

Yea I think unfortunately this is not easy to get right I feel. Also the algorithm doesn’t lend itself well for it. It would be only good for fixed-length string patterns. So in that sense, “u” could work, but anything beyond that is not really possible.

0reactions
Animenosekaicommented, Jun 15, 2021

Difficult to know which quotes belong to each other though…

Example: “what to” “replace here”

I mean, maybe by counting the number of "?

I don’t know it was an idea but you could let the user do it by himself and don’t change anything

Read more comments on GitHub >

github_iconTop Results From Across the Web

The 32 most commonly misspelled words that make you look ...
These are the 32 most commonly misspelled words, say grammar experts. How many can you get right? · 1. accommodate · 2. acknowledgment...
Read more >
unlikely or impossible to change - synonyms and related words
unchanging · firm · rigid · irreversible · invariable · unvarying · final · hard and fast.
Read more >
Do You Speak American . Words That Shouldn't Be ... - PBS
The eighteenth-century hope that language could be 'fixed' – that is, improved, or changed in a way some self-appointed linguistic judge would approve...
Read more >
Two words you need to remove from your vocabulary - Aruma
Retard (or the r-word), and spastic are words which have historically been used to describe people with a disability but here's why we...
Read more >
Avoid jargon - Plain Language.gov
Download: PDF · Word · Guidelines > Choose your words carefully. Avoid jargon. Jargon is unnecessarily complicated language used to impress, rather than...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found