do R1, R2 and RV need to be updated after deleting something?

<[email protected]> Thu, 26 Aug 2021 12:27:23 +0200
Newsgroups gmane.comp.search.snowball
Message-ID <[email protected]>
This is a multipart message in MIME format.

--===============5606350657349372314==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_00D9_01D79A75.B8D6B950"
Content-Language: it

This is a multipart message in MIME format.

------=_NextPart_000_00D9_01D79A75.B8D6B950
Content-Type: text/plain;
	charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello to all.

I am implementing the stemming algorithm for Italian =
(https://snowballstem.org/algorithms/italian/stemmer.html), and I have a =
doubt:

I have a word, say =E2=80=9Cpraticabilit=C3=A0=E2=80=9D

R1 is =E2=80=9Cicabilit=C3=A0=E2=80=9D

R=E2=80=9D is =E2=80=9Cabilit=C3=A0=E2=80=9D

RV is =E2=80=9Cticabilit=C3=A0=E2=80=9D

(or at least I hope so =F0=9F=98=8A)

In step 1 there is the rule:

it=C3=A0

delete if in R2

if preceded by abil, ic or iv, delete if in R2

And in step 3 there is the rule:

Delete a final a, e, i, o, =C3=A0, =C3=A8, =C3=AC or =C3=B2 if it is in =
RV, and a preceding i if it is in RV=20

In step 1 I delete =E2=80=9Cabilit=C3=A0=E2=80=9D and the word becomes =
=E2=80=9Cpratic=E2=80=9D

=20

I leave RV untouched, and so it is still =
=E2=80=9Cticabilit=C3=A0=E2=80=9D

=20

In step 3 I search for =E2=80=9C=C3=A0=E2=80=9D in RV and I found it as =
last character.

So I think I have to delete 1 character and I delete wrongly =
=E2=80=9Cc=E2=80=9D

=20

I wonder which the correct algorithm is. Maybe I need to delete matches =
from R1, R2, and RV too?

Thanks in advance for your help.

Alfonso

=20

Alfonso Moscato
CIO & COO
Merqurio Holding
Corso Umberto I, 23 - 80138 Napoli
Tel.+39 0815524300=20
Fax.+39 0814201136=20
Linea Verde: +39 800014863=20
=20
Diretto. +39 081 96.336.22=20
Mobile. +39 348 36.79.384

=20

=20

=20

=20

=20


------=_NextPart_000_00D9_01D79A75.B8D6B950
Content-Type: text/html;
	charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta =
name=3DGenerator content=3D"Microsoft Word 15 (filtered =
medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:Helvetica;
	panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DIT =
link=3D"#0563C1" vlink=3D"#954F72" style=3D'word-wrap:break-word'><div =
class=3DWordSection1><p class=3DMsoNormal>Hello to all.<o:p></o:p></p><p =
class=3DMsoNormal>I am implementing the stemming algorithm for Italian =
(<a =
href=3D"https://snowballstem.org/algorithms/italian/stemmer.html">https:/=
/snowballstem.org/algorithms/italian/stemmer.html</a>), and I have a =
doubt:<o:p></o:p></p><p class=3DMsoNormal>I have a word, say =
=E2=80=9Cpraticabilit=C3=A0=E2=80=9D<o:p></o:p></p><p =
class=3DMsoNormal>R1 is =
=E2=80=9Cicabilit=C3=A0=E2=80=9D<o:p></o:p></p><p =
class=3DMsoNormal>R=E2=80=9D is =
=E2=80=9Cabilit=C3=A0=E2=80=9D<o:p></o:p></p><p class=3DMsoNormal>RV is =
=E2=80=9Cticabilit=C3=A0=E2=80=9D<o:p></o:p></p><p class=3DMsoNormal>(or =
at least I hope so <span style=3D'font-family:"Segoe UI =
Emoji",sans-serif'>&#128522;</span>)<o:p></o:p></p><p =
class=3DMsoNormal>In step 1 there is the rule:<o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'margin-left:36.0pt;background:white'><b><i><span lang=3DEN-GB =
style=3D'font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#33333=
3;mso-fareast-language:IT'>it=C3=A0</span></i></b><b><span lang=3DEN-GB =
style=3D'font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#33333=
3;mso-fareast-language:IT'><o:p></o:p></span></b></p><p =
class=3DMsoNormal style=3D'margin-left:36.0pt;background:white'><span =
lang=3DEN-GB =
style=3D'font-size:10.5pt;font-family:"Helvetica",sans-serif;color:red;ms=
o-fareast-language:IT'>delete if =
in&nbsp;<i>R</i>2<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:36.0pt;background:white'><span lang=3DEN-GB =
style=3D'font-size:10.5pt;font-family:"Helvetica",sans-serif;color:red;ms=
o-fareast-language:IT'>if preceded =
by&nbsp;<b><i>abil</i></b>,&nbsp;<b><i>ic</i></b>&nbsp;or&nbsp;<b><i>iv</=
i></b>, delete if in&nbsp;<i>R</i>2<o:p></o:p></span></p><p =
class=3DMsoNormal>And in step 3 there is the rule:<o:p></o:p></p><p =
class=3DMsoNormal><span lang=3DEN-GB =
style=3D'font-size:10.5pt;font-family:"Helvetica",sans-serif;color:red;ms=
o-fareast-language:IT'>Delete a =
final&nbsp;<b><i>a</i></b>,&nbsp;<b><i>e</i></b>,&nbsp;<b><i>i</i></b>,&n=
bsp;<b><i>o</i></b>,&nbsp;<b><i>=C3=A0</i></b>,&nbsp;<b><i>=C3=A8</i></b>=
,&nbsp;<b><i>=C3=AC</i></b>&nbsp;or&nbsp;<b><i>=C3=B2</i></b>&nbsp;if it =
is in&nbsp;<i>RV</i>, and a preceding&nbsp;<b><i>i</i></b>&nbsp;if it is =
in&nbsp;<i>RV</i>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal>In =
step 1 I delete =E2=80=9Cabilit=C3=A0=E2=80=9D and the word becomes =
=E2=80=9Cpratic=E2=80=9D<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>I leave RV =
untouched, and so it is still =
=E2=80=9Cticabilit=C3=A0=E2=80=9D<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>In step 3 I =
search for =E2=80=9C=C3=A0=E2=80=9D in RV and I found it as last =
character.<o:p></o:p></p><p class=3DMsoNormal>So I think I have to =
delete 1 character and I delete wrongly =
=E2=80=9Cc=E2=80=9D<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>I wonder =
which the correct algorithm is. Maybe I need to delete matches from R1, =
R2, and RV too?<o:p></o:p></p><p class=3DMsoNormal>Thanks in advance for =
your help.<o:p></o:p></p><p class=3DMsoNormal>Alfonso<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;color:#E05661;mso-fareast-language:IT'>Alfonso =
Moscato</span></b><span =
style=3D'font-size:10.0pt;color:#E05661;mso-fareast-language:IT'><br></sp=
an><i><span style=3D'mso-fareast-language:IT'>CIO &amp; =
COO</span></i><span =
style=3D'font-size:9.0pt;color:black;mso-fareast-language:IT'><br></span>=
<i><span style=3D'mso-fareast-language:IT'>Merqurio =
Holding</span></i><span =
style=3D'mso-fareast-language:IT'><br>Corso&nbsp;Umberto&nbsp;I,&nbsp;23&=
nbsp;-&nbsp;80138&nbsp;Napoli<br><i>Tel.+39&nbsp;0815524300&nbsp;</i><br>=
<i>Fax.+39&nbsp;0814201136&nbsp;</i><br><i>Linea&nbsp;Verde:&nbsp;+39&nbs=
p;800014863&nbsp;</i><br>&nbsp;<br>Diretto. +39&nbsp;081 =
96.336.22&nbsp;<br>Mobile.&nbsp;+39&nbsp;348 =
36.79.384<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:9.0pt;color:black;mso-fareast-language:IT'><o:p>&nbsp;=
</o:p></span></p><p class=3DMsoNormal><span =
style=3D'mso-fareast-language:IT'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'mso-fareast-language:IT'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'mso-fareast-language:IT'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></body></html>
------=_NextPart_000_00D9_01D79A75.B8D6B950--



--===============5606350657349372314==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Snowball-discuss mailing list
[email protected]
https://lists.tartarus.org/mailman/listinfo/snowball-discuss

--===============5606350657349372314==--