O que significam as siglas depois da barra no dicionário do Firefox?

9

O que essas letras maiúsculas significam depois do caractere / no arquivo en-US.dic encontrado na pasta \Firefox\Dictionaries ?

Por exemplo:

collectivism/M
collectivist/MS
collectivity
collectivization/M
collectivize/GDS
collector/MS
colleen/SM
college/SM
collegial

O que significa M ou MS ou GDS etc.? Tenho certeza de que há documentação on-line em algum lugar, mas não estou tendo muita sorte em encontrá-lo.

    
por bpowah 20.01.2011 / 04:49

2 respostas

6

Os identificadores das letras referem-se aos afixos listados no arquivo .aff correspondente. Isso evita a necessidade de listar todas as formas de cada palavra no arquivo .dic . Veja " Entendendo o formato de arquivo do Affix " para mais informações.

O mesmo formato é usado pelo corretor ortográfico do MySpell .

    
por 20.01.2011 / 06:43
3

Depois de pesquisar por mim mesmo, finalmente encontrei esta página com uma boa explicação.

link

Each rule is in the .aff file for that language. The rules come in two flavors: SFX for suffixes, and PFX for prefixes. Each line begins with PFX/SFX and then the rule letter identifier (the ones that follow the word in the dictionary file:

PFX [rule_letter_identifier] [combineable_flag] [number_of_rule_lines_that_follow]

You can normally ignore the combinable flag, it is Y or N depending on whether it can be combined with other rules. Then there are some number of lines (indicated by the ) that list different possibilities for how this rule applies in different situations. It looks like this:

PFX [rule_letter_identifier] [number_of_letters_to_delete] [what_to_add] [when_to_add_it]

For example:

  • SFX B Y 3
  • SFX B 0 able [^aeiou]
  • SFX B 0 able ee
  • SFX B e able [^aeiou]e

If "B" is one of the letters following a word, then this is one of the rules that can apply. There are three possibilities that can happen (because there are three lines). Only one will apply:

able is added to the end when the end of the word is "not" (indicated by "^") one of the letters in the set (indicated by "[ ]") of letters a, e, i, o, and u. For example, question → questionable able is added to the end when the end of the word is "ee". For example, agree → agreeable. able is added to the end when the end of the word is not a vowel ("[^aeiou]") followed by an "e". The letter "e" is stripped (the column before able). For example, excite → excitable.

PFX rules are the same, but apply at the beginning of the word instead for prefixes.

    
por 19.08.2013 / 22:26