<?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/PCEsKShcc9C90L5cYnxcc9CwXGIpL3VpIiA9PiAiLCQwIgopOwokdGV4dCA9ICLQn9GA0L7QsdC10Lsg0L/QvtGB0LvQtSDRgtC+0LrQuCDQvdGD0LbQtdC9LtCV0LPQviDQt9Cw0LHRi9C70LgsICAgINC90L4g0LLRgdC1INC10YnQtSDQvNC+0LbQvdC+INC40YHQv9GA0LDQstC40YLRjC4iOwpmb3JlYWNoKCRtaXN0YWtlcyBhcyAkcmVnID0+ICRydWxlKXsKCSR0ZXh0ID0gcHJlZ19yZXBsYWNlKCRyZWcsICRydWxlLCAkdGV4dCk7CgkKfQplY2hvICR0ZXh0Ow==