Skip to content

ContainsProfanity and DetectAllProfanity mismatch #16

Open
@AbhishekTripathi

Description

Have a look at the following snippet from linqpad. Why is profanity detected when the ContainsProfanity returns false? Seems to be a bug.

var text = "I am swearing by God's name";
var filter = new ProfanityFilter.ProfanityFilter();
filter.ContainsProfanity(text).Dump(); //returns false
filter.DetectAllProfanities(text, true).Dump() //returns god

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions