30

Saludos.

^^^ as you see, I just said hello in Spanish and nothing happened, despite "Saludos" means "greetings" in Spanish.

In Spanish Stack Exchange we noticed that a post cannot start with something as normal as "Hay", which in English can be considered a greeting, but in Spanish just means "there are" and seems to be a perfectly valid word to start a post with :)

All of this comes from the automatic removal of salutations that Stack Exchange has in place, which performs some checks and removes those strings that match this regex:

^                 # begins at start of body
\s*               # possible spaces
(
hii?(?![a-z])|    # any of these greeting words
hello|
h(e|a)y(?![a-z])|
dear|
greetings|
hai|
guys|
howdy|
h(i|e)ya|
hola
)
.*?               # followed by anything, up to...
(
[.,;!-]+          # one or more bits of punctuation
\s*               # possible spaces
|
(\r?\n)+          # one or more newlines
)

At the same time, we seem to somehow know if a post is in English or not by using the English threshold.

All of this taken into consideration, could we have language specific automatic removal of salutations so clear greetings in other languages are removed, while perfectly valid non-greeting words are preserved? Of course, I mean this for the languages that currently have a site.

  • 4
  • 3
    @benisuǝqbackwards while they are quite connected (the OP of the other question in fact previously asked in Spanish.SE and I answered him) I don't think they are exact duplicates.. Mine is a feature request to have a broad implementation throughout the network. The other question is very specific about a specific greeting. – fedorqui Dec 27 '17 at 20:43
  • @fedorqui We can certainly do this! Let's get a list of Spanish words together for exclusion and we can go from there. Would you like to start that list? – Juan M Jan 2 '18 at 18:53
  • 1
    @JuanM nice! I have brought this to a Spanish.SE chat and we currently have several items. See the list. – fedorqui Jan 3 '18 at 14:20
  • 1
    Not a duplicate at all, used hammer to clear pending close votes. – Shadow Wizard Jan 5 '18 at 14:59
9

The following list of words are now on the exclusion list:

  • Saludos
  • Hola
  • Queridos
  • Gracias
  • Estimados
  • Buen( o | a ) s
  • Que tal
  • Buen(o|a|s) You sure Buens is a word? Shouldn't it be Buen(o|a)s?? – Meta Bug Wizard Feb 8 '18 at 17:32
  • You're right, I typed it wrong above but it's correct in the system. – Juan M Feb 8 '18 at 17:34
  • You may want to add Obrigados as well (aunque no es espanol). – Meta Bug Wizard Feb 8 '18 at 17:35
  • 2
    Thanks a lot, that's great news @JuanM! Probably better querid(o|a)s? so the s is optional and the same for estimad(o|a)s?. – fedorqui Feb 9 '18 at 7:36
  • In fact we see some buen día, (sample), so Buen(o|a)?s? would also help. – fedorqui Feb 13 '18 at 13:10
  • Could we also add Buen día? It occurs quite often: es.stackoverflow.com/q/153605/83 – fedorqui Apr 9 '18 at 11:36
  • @fedorqui I'll have that added as well! – Juan M Apr 9 '18 at 21:26
  • 1
    Thanks, Juan! Let us know when it is live – fedorqui Apr 9 '18 at 21:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .