> but lately that feels like just sweeping the problem under the rug

Actually, this was an issue in the past. A few years back, we (the [SOBotics team](https://sobotics.org)) requested a dump of rude comments from Stack Exchange, and Stack Exchange [provided us](https://meta.stackoverflow.com/a/327148/4946380) with some. Using this data, we then built [HeatDetector](https://stackapps.com/q/7001/), a bot to detect rude comments on Stack Overflow (using Natural Language Processing). Thanks to the bot reporting stuff, most of the rude and snarky comments posted on Stack Overflow used to be detected by HeatDetector and then manually flagged by users in chat, causing the rude comment to be subsequently deleted. We used to raise a custom moderator flag to inform the moderators about users who left a substantial amount of rude comments in a very short period of time. Now, thanks to [Brad's feature request](https://meta.stackexchange.com/q/284053/) to have the Stack Exchange system raise an automatic flag when a user leaves a lot of rude comments, there is an automatic flag raised by the Stack Exchange system in these cases, and the SOBotics team no longer has to raise those custom flags.

Now speaking from the mod perspective, the auto flag became very noisy and went to the levels of 300. Most of them were filled with too chatty comments, which were flagged as non-constructive. This caused the CMs to look into the auto flag and [make the comment flags less stupid](https://meta.stackexchange.com/questions/252844/make-comment-flags-less-stupid). After [the merger of the 3 comment flag types](https://meta.stackexchange.com/questions/292011/drop-not-constructive-combine-noisy-reword-rude-and-other-comment-flag), the auto flag is now raised whenever there are 3 or more rude comments in the recent past. With this change the signal/noise ratio in that auto flag is high but on the downside, the number of false negatives are also high.

> Can users be sent an automatic warning with a reminder to Be Nice if a number of their comments are flagged as rude?

This isn't a bad idea, but there's one downside; Stack Exchange automatically deletes some comments, and does face the Scunthorpe problem. There might be edge cases where a user actually added some profanity which made sense in the context of the post.

Another potential problem which I see is that, it doesn't really help cater the main issue which you're focusing upon, which is:

> Lately it feels like there's a growing perception that Stack Overflow is not a nice place.

This growing perception is mostly because the users receive negative comments. Most of these snarky comments are flagged as no longer needed. This is because the users to which they are targeted are usually new and do not know how to flag. The other users, who check these out do not consider it rude, and flag it as no longer needed, instead. (I don't know why they do this, but I can clearly say that I see many snarky comments flagged as NLN and not R/A). This doesn't raise an auto flag, and wouldn't send the automated message.

Now, we can't just include NLN into the rude comments bracket, as it would cause the problem discussed earlier. So, to conclude, the new system won't be very effective. If we decide to go with this new system, it would need a lot of development effort. Instead of that, we can just spend some more of the moderator time and make them handle it. And as always, a pair of human eyes is better than an automated system.

And for your questions:

> Is anything like this already in place?

As meagar mentioned, there isn't an automated system per se, but mods are trained similar to an automated system to contact the user on seeing these flags.

> Is there (anonymized) data regular users can access to see how big a problem this is?

There is [some limited data set provided by Stack Exchange](https://meta.stackoverflow.com/questions/326494/can-i-have-a-dump-of-rude-abusive-comments), which would not help to see how big this problem is. As far as I know, this is not made public, to protect the guilty (even if anonymized, users can find out from the comment text).  

From a community user perspective, you are more than welcome to [join us in Sobotics](https://chat.stackoverflow.com/rooms/111347/sobotics) and get a live feed of the snarky comments. Rob is building a [nice web-based GUI frontend](https://github.com/SOBotics/Higgs), to create a [new dashboard](https://github.com/SOBotics/SOCVFinder/issues/13), where you can see the (possibly anonymized) data. This would be more useful to you.

> Should this be escalated to a moderator flag after a number of warnings to the same user?

I'd say, this should be escalated on the very first warning (in the new system which you propose). Moderators must have knowledge of rude and abusive users so that they can keep an eye on them and take care.