Skip to content

ContainsProfanity and DetectAllProfanity mismatch #16

@AbhishekTripathi

Description

@AbhishekTripathi

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

Metadata

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