Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
mmdbalkhi committed Jun 6, 2022
1 parent 73ecc44 commit 8be21b1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install -r hazm
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand Down
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,24 @@ pip3 install Sansorchi

### usage

- remove badwords

```python
from sansorchi import Sansorchi

sansorchi = Sansorchi()

sansorchi.remove_bad_words("YOUR_TEXT")
```

from sansorchi import sansor
print(sansor("YOUR_TEXT"))
- check badwords

```python
sansorchi.is_bad_word("YOUR_TEXT")
```

if yourtext has badword return True else return False

### Contributing

See this [file](https://github.com/mmdbalkhi/Sansorchi/blob/main/CONTRIBUTING.md) to contribute
2 changes: 1 addition & 1 deletion sansorchi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Sansorchi a package for remove swears word"""
from sansorchi.sansorchi import Sansorchi # noqa: E401

__version__ = "5.0.0"
__version__ = "5.0.1"

0 comments on commit 8be21b1

Please sign in to comment.