מגילה א:ב · Megillah 1:2

כֵּיצַד. חָל לִהְיוֹת יוֹם אַרְבָּעָה עָשָׂר בַּשֵּׁנִי, כְּפָרִים וַעֲיָרוֹת גְּדוֹלוֹת קוֹרִין בּוֹ בַיּוֹם, וּמֻקָּפוֹת חוֹמָה לְמָחָר. חָל לִהְיוֹת בַּשְּׁלִישִׁי אוֹ בָּרְבִיעִי, כְּפָרִים מַקְדִּימִין לְיוֹם הַכְּנִיסָה וַעֲיָרוֹת גְּדוֹלוֹת קוֹרִין בּוֹ בַיּוֹם, וּמֻקָּפוֹת חוֹמָה לְמָחָר. חָל לִהְיוֹת בָּחֲמִישִׁי, כְּפָרִים וַעֲיָרוֹת גְּדוֹלוֹת קוֹרִין בּוֹ בַיּוֹם, וּמֻקָּפוֹת חוֹמָה לְמָחָר. חָל לִהְיוֹת עֶרֶב שַׁבָּת, כְּפָרִים מַקְדִּימִין לְיוֹם הַכְּנִיסָה, וַעֲיָרוֹת גְּדוֹלוֹת וּמֻקָּפוֹת חוֹמָה קוֹרִין בּוֹ בַיּוֹם. חָל לִהְיוֹת בְּשַׁבָּת, כְּפָרִים וַעֲיָרוֹת גְּדוֹלוֹת מַקְדִּימִין וְקוֹרִין לְיוֹם הַכְּנִיסָה, וּמֻקָּפוֹת חוֹמָה לְמָחָר. חָל לִהְיוֹת אַחַר הַשַּׁבָּת, כְּפָרִים מַקְדִּימִין לְיוֹם הַכְּנִיסָה, וַעֲיָרוֹת גְּדוֹלוֹת קוֹרִין בּוֹ בַיּוֹם, וּמֻקָּפוֹת חוֹמָה לְמָחָר:
How so? If the fourteenth of Adar occurs on Monday, the villages and large towns read it on that day, and the walled cities read it on the next day, the fifteenth. If the fourteenth occurs on Tuesday or Wednesday, the villages advance their reading to the day of assembly, i.e., Monday, the twelfth or thirteenth of Adar; the large towns read it on that day, i.e., the fourteenth of Adar, and the walled cities read it on the next day, the fifteenth. If the fourteenth occurs on Thursday, the villages and large towns read it on that day, the fourteenth, and the walled cities read it on the next day, the fifteenth. If the fourteenth occurs on Shabbat eve, the villages advance their reading to the day of assembly, i.e., Thursday, the thirteenth of Adar; and the large towns and the walled cities read it on that day, i.e., the fourteenth of Adar. Even the walled cities read the Megilla on the fourteenth rather than on the fifteenth, as they do not read it on Shabbat. If the fourteenth occurs on Shabbat, both the villages and large towns advance their reading to the day of assembly, i.e., Thursday, the twelfth of Adar; and the walled cities read it on the day after Purim, the fifteenth. If the fourteenth occurs on Sunday, the villages advance their reading to the day of assembly, i.e., Thursday, the eleventh of Adar; and the large towns read it on that day, i.e., the fourteenth of Adar; and the walled cities read it on the next day, the fifteenth.

Word-by-word Breakdown (מילים ושרשים)

כֵּיצַד → How so חָל → occurs [ח - ל - ל]לִהְיוֹת → to be [ה - י - ה]יוֹם → the fourteenth אַרְבָּעָה → four [ר - ב - ע]עָשָׂר → ten [ע - ש - ר]בַּשֵּׁנִי → on Monday [ש - נ - ה]כְּפָרִים → villages [כ - פ - ר]וַעֲיָרוֹת → and towns [ע - ר - ה]גְּדוֹלוֹת → large [ג - ד - ל]קוֹרִין → read [ק - ר - א]בּוֹ → on it בַיּוֹם → that day וּמֻקָּפוֹת → and walled [ק - פ - ה]חוֹמָה → cities [ח - מ - ה]לְמָחָר → on the next day [מ - ח - ר]חָל → occurs [ח - ל - ל]לִהְיוֹת → to be [ה - י - ה]בַּשְּׁלִישִׁי → on Tuesday [ש - ל - ש]אוֹ → or בָּרְבִיעִי → on Wednesday [ר - ב - ע]כְּפָרִים → villages [כ - פ - ר]מַקְדִּימִין → advance [ק - ד - ם]לְיוֹם → to the day of הַכְּנִיסָה → assembly [כ - נ - ס]וַעֲיָרוֹת → and towns [ע - ר - ה]גְּדוֹלוֹת → large [ג - ד - ל]קוֹרִין → read [ק - ר - א]בּוֹ → on it בַיּוֹם → that day וּמֻקָּפוֹת → and walled [ק - פ - ה]חוֹמָה → cities [ח - מ - ה]לְמָחָר → on the next day [מ - ח - ר]חָל → occurs [ח - ל - ל]לִהְיוֹת → to be [ה - י - ה]