What is Nostr?
Matty-kun /
npub13v6…hy07
2024-11-16 21:43:02
in reply to nevent1q…0tky

Matty-kun on Nostr: I think this would be a little more accurate. Querying several million objects ...

I think this would be a little more accurate. Querying several million objects doesn't actually take as long as I expected.

pleroma=# SELECT count(*) FROM objects WHERE split_part(data->>'actor', '/', 3) IN ('nicecrew.digital') AND LOWER(data->>'content') LIKE ANY (ARRAY['%nigga%', '%niggas%', '%nigger%', '%niggers%']);
count
--------
129890
(1 row)

This works out to approximately 3.8 percent of posts on NCD containing any variation of the nigger word. This obviously does not include a total count (for example 'NIGGER NIGGER NIGGER NIGGER' would be one, not four ticks in this query) but the ratio of objects which do contain one of those words.
Author Public Key
npub13v68j9479je6h958e84h32xs2gjvq3duuk6pd0w4q95evh4s73wqk2hy07