semvec/pypi-packages huggingface dataset:
wordfinder 1.0.0
A sample Python project
Requires Python: >=3.5, <4
Keywords: keyword detect sentence focus

# WordFinder

This is python package for find sentences that contains keywords from sentences and bold them.

```py
import wordfinder

sentences = [
    "You've been eyeing me all day and waiting for your move like a lion stalking a gazelle in a savannah.",
    "The ants enjoyed the barbecue more than the family.",
    "The Guinea fowl flies through the air with all the grace of a turtle."
    ]

keywords = ["barbecue", "fowl", "eye"]

# Optional
option = {
    'mark': 'bold' # none|bold|italic|underline|<span class="yes"></span>,
    'rule': 'match' # contain|match
}

sents = wordfinder.detect_sentences(keywords, sentences, option)
>> sents
[
    "The ants enjoyed the barbecue more than the family.",
    "The Guinea fowl flies through the air with all the grace of a turtle."
]

```