Skip to content

Commit

Permalink
fix fandaymon
Browse files Browse the repository at this point in the history
 скрипт начнёт понимать конструкции Женский Гель Для Душа
  • Loading branch information
kotovmaksim committed Apr 27, 2018
1 parent 062fb79 commit a041dcd
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions modules/app_products/product_addToListFromVoice.inc.php
Expand Up @@ -110,7 +110,7 @@
$qty=1;
$ed_izm='';


$ed_izm_array=SQLSelect("SELECT ucase(TITLE) as TITLE,SHORT_NAME FROM product_units");

for ($is = 0; $is < $totals; $is++) {

Expand Down Expand Up @@ -299,6 +299,16 @@
$is=$is+1;
}
}
if ($is<$totals) {
if ($partsOfSpeech[$is+1][0]=='ПРЕДЛ') {
$product=$product . ' ' . $words[$is+1];
$is++;
if ($is<$totals) {
$product=$product . ' ' . $words[$is+1];
$is++;
}
}
}
elseif ($partsOfSpeech[$is+1][0]=='П' or $partsOfSpeech[$is+1][0]=='ПРИЧАСТИЕ'){
if ($partsOfSpeech[$is+1][0]=='ПРИЧАСТИЕ') {
$zalog=array_intersect($f_word[$is+1][0][0]['grammems'],['СТР', 'ДСТ']);
Expand Down Expand Up @@ -474,4 +484,4 @@ function addToListQty($id,$qty,$ed_izm) {
}
}
}
?>
?>

0 comments on commit a041dcd

Please sign in to comment.