U
    \ªSh(  ã                   @  sP   d Z ddlmZ ddlmZ ddlZddlmZmZ edƒZ	G dd„ deƒZ
dS )	z?Portuguese search language: includes the JS Portuguese stemmer.é    )Úannotations)ÚDictN)ÚSearchLanguageÚparse_stop_wordu®  
| source: http://snowball.tartarus.org/algorithms/portuguese/stop.txt
de             |  of, from
a              |  the; to, at; her
o              |  the; him
que            |  who, that
e              |  and
do             |  de + o
da             |  de + a
em             |  in
um             |  a
para           |  for
  | Ã©          from SER
com            |  with
nÃ£o            |  not, no
uma            |  a
os             |  the; them
no             |  em + o
se             |  himself etc
na             |  em + a
por            |  for
mais           |  more
as             |  the; them
dos            |  de + os
como           |  as, like
mas            |  but
  | foi        from SER
ao             |  a + o
ele            |  he
das            |  de + as
  | tem        from TER
Ã               |  a + a
seu            |  his
sua            |  her
ou             |  or
  | ser        from SER
quando         |  when
muito          |  much
  | hÃ¡         from HAV
nos            |  em + os; us
jÃ¡             |  already, now
  | estÃ¡       from EST
eu             |  I
tambÃ©m         |  also
sÃ³             |  only, just
pelo           |  per + o
pela           |  per + a
atÃ©            |  up to
isso           |  that
ela            |  he
entre          |  between
  | era        from SER
depois         |  after
sem            |  without
mesmo          |  same
aos            |  a + os
  | ter        from TER
seus           |  his
quem           |  whom
nas            |  em + as
me             |  me
esse           |  that
eles           |  they
  | estÃ£o      from EST
vocÃª           |  you
  | tinha      from TER
  | foram      from SER
essa           |  that
num            |  em + um
nem            |  nor
suas           |  her
meu            |  my
Ã s             |  a + as
minha          |  my
  | tÃªm        from TER
numa           |  em + uma
pelos          |  per + os
elas           |  they
  | havia      from HAV
  | seja       from SER
qual           |  which
  | serÃ¡       from SER
nÃ³s            |  we
  | tenho      from TER
lhe            |  to him, her
deles          |  of them
essas          |  those
esses          |  those
pelas          |  per + as
este           |  this
  | fosse      from SER
dele           |  of him

 | other words. There are many contractions such as naquele = em+aquele,
 | mo = me+o, but they are rare.
 | Indefinite article plural forms are also rare.

tu             |  thou
te             |  thee
vocÃªs          |  you (plural)
vos            |  you
lhes           |  to them
meus           |  my
minhas
teu            |  thy
tua
teus
tuas
nosso          | our
nossa
nossos
nossas

dela           |  of her
delas          |  of them

esta           |  this
estes          |  these
estas          |  these
aquele         |  that
aquela         |  that
aqueles        |  those
aquelas        |  those
isto           |  this
aquilo         |  that

               | forms of estar, to be (not including the infinitive):
estou
estÃ¡
estamos
estÃ£o
estive
esteve
estivemos
estiveram
estava
estÃ¡vamos
estavam
estivera
estivÃ©ramos
esteja
estejamos
estejam
estivesse
estivÃ©ssemos
estivessem
estiver
estivermos
estiverem

               | forms of haver, to have (not including the infinitive):
hei
hÃ¡
havemos
hÃ£o
houve
houvemos
houveram
houvera
houvÃ©ramos
haja
hajamos
hajam
houvesse
houvÃ©ssemos
houvessem
houver
houvermos
houverem
houverei
houverÃ¡
houveremos
houverÃ£o
houveria
houverÃ­amos
houveriam

               | forms of ser, to be (not including the infinitive):
sou
somos
sÃ£o
era
Ã©ramos
eram
fui
foi
fomos
foram
fora
fÃ´ramos
seja
sejamos
sejam
fosse
fÃ´ssemos
fossem
for
formos
forem
serei
serÃ¡
seremos
serÃ£o
seria
serÃ­amos
seriam

               | forms of ter, to have (not including the infinitive):
tenho
tem
temos
tÃ©m
tinha
tÃ­nhamos
tinham
tive
teve
tivemos
tiveram
tivera
tivÃ©ramos
tenha
tenhamos
tenham
tivesse
tivÃ©ssemos
tivessem
tiver
tivermos
tiverem
terei
terÃ¡
teremos
terÃ£o
teria
terÃ­amos
teriam
c                   @  s<   e Zd ZdZdZdZeZdddœdd„Zd	d	d
œdd„Z	dS )ÚSearchPortugueseÚptZ
Portuguesezportuguese-stemmer.jsÚdictÚNone)ÚoptionsÚreturnc                 C  s   t  d¡| _d S )NÚ
portuguese)ÚsnowballstemmerÚstemmer)Úselfr
   © r   úC/root/rtd-docs/venv/lib/python3.8/site-packages/sphinx/search/pt.pyÚinit  s    zSearchPortuguese.initÚstr)Úwordr   c                 C  s   | j  | ¡ ¡S )N)r   ZstemWordÚlower)r   r   r   r   r   Ústem  s    zSearchPortuguese.stemN)
Ú__name__Ú
__module__Ú__qualname__ÚlangZlanguage_nameZjs_stemmer_rawcodeÚportuguese_stopwordsZ	stopwordsr   r   r   r   r   r   r   û   s   r   )Ú__doc__Ú
__future__r   Útypingr   r   Zsphinx.searchr   r   r   r   r   r   r   r   Ú<module>   s    q