<?php
"/шы/ui" => "ши",
"/жы/ui" => "жи",
"/сдесь/ui" => "здесь",
"/з(дела(л|ю|н))/ui" => "c$1",
"/[,;!?:](?!\s)/ui" => "$0 ",
"/(?<!,)(\sно\b|\sа\b)/ui" => ",$0"
);
$text = "шы жы сдесь зделал:зделаю,зделан но а ";
foreach($mistakes as $reg => $rule){
}
echo $text;
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKJG1pc3Rha2VzID0gYXJyYXkgKAoJIi/RiNGLL3VpIiA9PiAi0YjQuCIsCiAgICAiL9C20YsvdWkiID0+ICLQttC4IiwKICAgICIv0YHQtNC10YHRjC91aSIgPT4gItC30LTQtdGB0YwiLAogICAgIi/QtyjQtNC10LvQsCjQu3zRjnzQvSkpL3VpIiA9PiAiYyQxIiwKICAgICIvWyw7IT86XSg/IVxzKS91aSIgPT4gIiQwICIsCiAgICAiLyg/PCEsKShcc9C90L5cYnxcc9CwXGIpL3VpIiA9PiAiLCQwIgopOwokdGV4dCA9ICLRiNGLINC20Ysg0YHQtNC10YHRjCDQt9C00LXQu9Cw0Ls60LfQtNC10LvQsNGOLNC30LTQtdC70LDQvSDQvdC+INCwICI7CmZvcmVhY2goJG1pc3Rha2VzIGFzICRyZWcgPT4gJHJ1bGUpewoJJHRleHQgPSBwcmVnX3JlcGxhY2UoJHJlZywgJHJ1bGUsICR0ZXh0KTsKCQp9CmVjaG8gJHRleHQ7