edit grammars

This commit is contained in:
Yevhenii Poliakov 2023-05-04 00:30:49 +02:00
parent c4abf9c60f
commit 2de6bee37b
2 changed files with 124 additions and 0 deletions

61
grammar2.jsgf Normal file
View File

@ -0,0 +1,61 @@
#JSGF V1.0;
grammar generalStore;
public <command> = <buyCommand> | <cartCommand> | <filterCommand> | <searchCommand> | <helpCommand> | <accountCommand> | <paymentCommand> | <shippingCommand> | <returnCommand> | <promoCommand> | <storeCommand> | <serviceCommand>;
<buyCommand> = (buy | purchase) <quantity> <product>;
<cartCommand> = (add | remove | edit | update | view | cancel | confirm) <itemAction> <item> in my cart;
<itemAction> = (item | items);
<item> = <quantity> <product>;
<quantity> = (a | an | two | three | four | five | six | seven | eight | nine);
<product> = <grocery> | <beverage> | <personalCare> | <cleaning> | <homeGoods> | <electronics>;
<grocery> = (bread | cereal | pasta | rice | beans | soup | canned food | snacks | cookies | candy | chocolate | condiments | spices);
<beverage> = (water | soda | juice | coffee | tea | energy drink | sports drink | beer | wine);
<personalCare> = (toothbrush | toothpaste | floss | mouthwash | soap | shampoo | conditioner | body wash | lotion | deodorant | razor | shaving cream | feminine hygiene | diapers | baby wipes);
<cleaning> = (laundry detergent | dish soap | all-purpose cleaner | glass cleaner | disinfectant | bleach | cleaning wipes | scrub brush | mop | broom | dustpan);
<homeGoods> = (towels | bedding | curtains | rugs | storage | hangers | trash bags | batteries | light bulbs | candles | pet food | cat litter);
<electronics> = (cell phone | tablet | laptop | headphones | speaker | charging cable | batteries | memory card);
<filterCommand> = filter by <filterType>;
<filterType> = (price low | price high | brand <brandName> | color <colorName> | size <sizeType> | rating <ratingType> | available);
<brandName> = (Coca-Cola | Pepsi | Tide | Kellogg's | Nestle | L'Oreal | Procter & Gamble | Samsung | Apple | Sony);
<colorName> = (red | blue | green | yellow | black | white | pink | purple | gray);
<sizeType> = (small | medium | large | extra large | XXL);
<ratingType> = (one star | two stars | three stars | four stars | five stars);
<searchCommand> = (search | find) <product>;
<helpCommand> = help me with <helpType>;
<helpType> = (my payment information | my order status | my account | my shipping information | my returns);
<accountCommand> = (manage my account | login to my account | sign in to my account | create an account);
<paymentCommand> = (manage my payment information | update my credit card information);
<shippingCommand> = (manage my shipping information | track my shipment | update my shipping address);
<returnCommand> = (check my return status | return an item);
<promoCommand> = (apply a promotion | redeem a gift card | use a coupon code);
<storeCommand> = (find a store near me | check store hours)
<serviceCommand> = (get customer service support | ask for help | report an issue | provide feedback | request a refund | contact us);

63
grammar3.jsgf Normal file
View File

@ -0,0 +1,63 @@
#JSGF V1.0;
grammar zakupyOnline;
@charset "UTF-8";
grammar zakupyOnline;
public <command> = <buyCommand> | <cartCommand> | <filterCommand> | <searchCommand> | <helpCommand> | <accountCommand> | <paymentCommand> | <shippingCommand> | <returnCommand> | <promoCommand> | <storeCommand> | <serviceCommand>;
<buyCommand> = (kup | zakup) <quantity> <product>;
<cartCommand> = (dodaj | usuń | edutuj | zaktualizuj | zobacz | anuluj | potwierdź) <itemAction> <item> w moim koszyku;
<itemAction> = (artykuł | artykuły);
<item> = <quantity> <product>;
<quantity> = (jeden | dwa | trzy | cztery | pięć | sześć | siedem | osiem | dziewięć | dziesięć);
<product> = <grocery> | <beverage> | <personalCare> | <cleaning> | <homeGoods> | <electronics>;
<grocery> = (chleb | płatki śniadaniowe | makaron | ryż | fasola | zupa | konserwy | przekąski | ciastka | cukierki | czekolada | przyprawy);
<beverage> = (woda | napoje gazowane | sok | kawa | herbata | napoje energetyczne | napoje izotoniczne | piwo | wino);
<personalCare> = (szczoteczka do zebow | pasta do zebow | nitki dentystyczne | plyny do plukania ust | mydlo | szampon | odzywka | zel do kapieli | balsam do ciala | dezodorant | maszynka do golenia | krem do golenia | podpaski | pieluchy);
<cleaning> = (proszek do prania | plyny do mycia naczyn | uniwersalny srodek czyszczacy | plyny do czyszczenia szyb | srodek dezynfekujacy | wybielacz | chusteczki czyszczace | szczotka do czyszczenia | mop | miotla | szufelka);
<homeGoods> = (reczniki | posciel | zaslony | dywany | pojemniki na przechowywanie | wieszaki | worki na smieci | baterie | zarowki | swiece | jedzenie dla zwierzat | zageszczacz kociego piasku);
<electronics> = (telefon komórkowy | tablet | laptop | słuchawki | głośniki | ładowarki | baterie | karty pamięci);
<filterCommand> = filtruj według <filterType>;
<filterType> = (ceny rosnącą | ceny malejąco | marka <brandName> | kolor <colorName> | rozmiar <sizeType> | ranking <ratingType> | dostępność);
<brandName> = (Coca-Cola | Pepsi | Dr. Pepper | Tiger | Milka | L'Oreal | Procter & Gamble | Samsung | Apple | Sony);
<colorName> = (czerwony | niebieski | zielony | zółty | czartny | biały | różowy | fioletowy | szary);
<sizeType> = (mały | średni | duży | bardzo duży | XXL);
<ratingType> = (jedna gwiazdka | dwie gwiazdki | trzy gwiazdki | cztery gwiazdki | pięć gwiazdek);
<searchCommand> = (szukaj | znajdź) <product>;
<helpCommand> = (pomóż mi z | pomóż mi) <helpType>;
<helpType> = (informacje o płatości | mój stan zamówienia | moje konto | informacje o dostawie | moje zwroty);
<accountCommand> = (ustawienia konta | zaloguj | zarejestruj się | załóż konto);
<paymentCommand> = (metody płatności | edytuj karte kredytową );
<shippingCommand> = (edytuj informacje o dostawie | śledź moje zamówienie | aktualizuj mój adres);
<returnCommand> = (sprawdź stan zwrotu | zwróć artykuł);
<promoCommand> = (użyj zniżki | użyj karty podarunkowej | użyj kuponu);
<storeCommand> = (znajdź sklep obok mnie | sprawdź godziny otwarcia sklepu);
<serviceCommand> = (obsługa klienta | zapytać pomoc | zgłosić problem | podzielić się opinią | ządać zwrotu | skontaktować się);