Skip to content

feat: implement profanity filtering in suggestions and autocompletion - #746

Open
angrezichatterbox wants to merge 2 commits into
scribe-org:mainfrom
angrezichatterbox:feat/profane-word-removal
Open

angrezichatterbox wants to merge 2 commits into
scribe-org:mainfrom
angrezichatterbox:feat/profane-word-removal

Conversation

@angrezichatterbox

@angrezichatterbox angrezichatterbox commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Contributor checklist


Description

This PR remove profane words from autocompletions and autosuggestions

Related issue

@andrewtavis andrewtavis added the -next release- Included in the next release label Nov 4, 2026
autocompleteRunnable?.let { handler.removeCallbacks(it) }

if (ime.currentState != ScribeState.IDLE || currentWord.isNullOrEmpty()) {
if (ime.currentState != ScribeState.IDLE || currentWord.isNullOrEmpty() ||

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs multi-line condition wrapping here so ktlint passes

?.filterTo(profanity) { it.isNotEmpty() }
}
}
} catch (e: SQLiteException) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to update catch block here to prevent SwallowedException detekt issues

@ashb155 ashb155 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apart from issues above rest LGTM @andrewtavis @angrezichatterbox

@andrewtavis

Copy link
Copy Markdown
Member

Updated the branch with the latest main, @angrezichatterbox :)

@andrewtavis

Copy link
Copy Markdown
Member

Just triggered an update of Scribe-Server, so when that's done we should have the plurals for profanity coming in :)

@andrewtavis

Copy link
Copy Markdown
Member

Checked and profanity is now included, so we're good to finalize this, @angrezichatterbox!

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

Labels

-next release- Included in the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove profanity from autosuggestions and autocompletions

3 participants