aspell-python | Python wrapper for aspell | Download Utils library
kandi X-RAY | aspell-python Summary
kandi X-RAY | aspell-python Summary
Python wrapper for aspell (C extension and python version)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of aspell-python
aspell-python Key Features
aspell-python Examples and Code Snippets
Community Discussions
Trending Discussions on aspell-python
QUESTION
I am trying to using regex in Python to capture whole words from text. This is simple enough but I also want to remove contractions and possessives indicated by apostrophes.
Currently I have (?iu)(?
Testing on the following text
One tree or many trees? My tree's green. I didn't figure this out yet.
Gives these matches
One tree or many trees My tree green I didn figure this out yet
In this example the negative lookbehind prevents the "s" and "t" after an apostrophe from being matched as whole words. But how do I write the negative lookahead (?!n')
so that the matches include "did" instead of "didn"?
(My use case here is a simple Python spell checker, each word gets validated as being spelt correctly or not. I've ended up using the autocorrect module as pyenchant, aspell-python and others didn't work when installed via pip)
...ANSWER
Answered 2017-Jul-12 at 14:40I would use this regex:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install aspell-python
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page