Hacer Pregunta

Crear un tema
Retroceder   Foros para el aprendizaje de inglés y español > Los idiomas inglés y español > La gramática
Registrarse Ayuda Comunidad Calendario Temas de Hoy Buscar PenpalsTraductor


Split by, split on

 

Éste es el lugar para preguntas sobre conjugaciones, tiempos verbales, adverbios, adjetivos, el orden de palabras, sintaxis y otras cuestiones gramaticales en español e inglés.


Respuesta
 
Herramientas Desplegado
  #1  
Antiguo March 15, 2024, 02:07 PM
Tyrn Tyrn no está en línea
Pearl
 
Fecha de Ingreso: Jul 2019
Mensajes: 355
Primera Lengua: Russian
Tyrn is on a distinguished road
Split by, split on

Hi,

This is a distinction I'm not at all sure of. The following is my guess, not a certainty.

Here's a string of words:

"alfa bravo charlie delta"

This is the string split:

("alfa" "bravo" "charlie" "delta")

Is it correct to say that the string is split by words, on spaces?

Última edición por Tyrn fecha: March 15, 2024 a las 11:56 PM
Responder Con Cita
  #2  
Antiguo March 15, 2024, 05:54 PM
Avatar de wrholt
wrholt wrholt no está en línea
Sapphire
 
Fecha de Ingreso: Apr 2011
Ubicación: Boston, Massachusetts, USA
Mensajes: 1,401
Primera Lengua: US English
wrholt is on a distinguished road
I would say that I split the string on spaces (or at spaces)* in order to split it into words, but only when talking about strings that are similar to your example string, which contains only arbitrary groups of alphabetic characters separated by one and only one space character.

If I don't know whether a string is guaranteed to satisfy that restriction, I would say that I split the string on spaces in order to split it into substrings.

For example, if I split the previous sentence on spaces, some of the substrings are "substrings." and "restriction,", which are not words in a strict sense, as the punctuation marks "." and "," are not part of the spelling of words in English.

Disclaimer: by education I'm a computer scientist, and I've worked as a computer programmer for more than 36 years.

*for reference, the documentation from Microsoft about the Split function in the .Net framework uses "at spaces" rather than "on spaces": https://learn.microsoft.com/en-us/do...MSDN#overloads

Última edición por wrholt fecha: March 15, 2024 a las 06:08 PM
Responder Con Cita
  #3  
Antiguo March 15, 2024, 11:53 PM
Tyrn Tyrn no está en línea
Pearl
 
Fecha de Ingreso: Jul 2019
Mensajes: 355
Primera Lengua: Russian
Tyrn is on a distinguished road
Yes, I meant computer science all along

So, we split strings on/at spaces, and into substrings. Still unclear: is it possible to split a string by words? I'm really interested in a short preposition.
Responder Con Cita
  #4  
Antiguo March 16, 2024, 09:28 PM
Avatar de wrholt
wrholt wrholt no está en línea
Sapphire
 
Fecha de Ingreso: Apr 2011
Ubicación: Boston, Massachusetts, USA
Mensajes: 1,401
Primera Lengua: US English
wrholt is on a distinguished road
Cita:
Escrito originalmente por Tyrn Ver Mensaje
Yes, I meant computer science all along

So, we split strings on/at spaces, and into substrings. Still unclear: is it possible to split a string by words? I'm really interested in a short preposition.
"Split a string by words" doesn't sound as natural to me as "split a string into words".

"Split a string into words" describes the end result of splitting a string. "Split a string by words" suggests the method of splitting a string into smaller units, rather than identifying what the smaller units are. In this context, "by words" doesn't fit the context well, while "into words" does.

There are other types of data for which I could use "by" to describe how to group the data into smaller sets: for example, an economic analysis could report economic data grouped by some unit of time such as year, month, quarter, or week. Or it could report the data by cateory: medical spending, basic necessities such as food, clothing, or housing, and so on.

Note that I'm a native speaker of US English from the northeastern US. I cannot speak for other national, regional, or social varieties of English: there are differences of pronoun usage between different varieties of English.

Última edición por wrholt fecha: March 16, 2024 a las 09:36 PM
Responder Con Cita
  #5  
Antiguo March 17, 2024, 12:04 AM
Tyrn Tyrn no está en línea
Pearl
 
Fecha de Ingreso: Jul 2019
Mensajes: 355
Primera Lengua: Russian
Tyrn is on a distinguished road
Possible albeit debatable. One can settle for it, then. Word by Word: The Secret Life of Dictionaries by Kory Stamper is a book I can recommend for everyone .
Responder Con Cita
  #6  
Antiguo March 19, 2024, 03:07 PM
Avatar de wrholt
wrholt wrholt no está en línea
Sapphire
 
Fecha de Ingreso: Apr 2011
Ubicación: Boston, Massachusetts, USA
Mensajes: 1,401
Primera Lengua: US English
wrholt is on a distinguished road
Cita:
Escrito originalmente por wrholt Ver Mensaje
...

Note that I'm a native speaker of US English from the northeastern US. I cannot speak for other national, regional, or social varieties of English: there are differences of pronoun usage between different varieties of English.
My proofreading wasn't that great when I stopped working on a previous reply: I meant to say "differences of preposition usage". That's what I get for writing responses after staying up longer than I probably should.
Responder Con Cita
Respuesta

 

Link to this thread
URL: 
HTML Link: 
BB Code: 

Normas de Publicación
No puedes crear nuevos hilos
No puedes enviar respuestas
No puedes adjuntar archivos
No puedes editar tus mensajes
Código BB está habilitado
Los iconos gestuales están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Normas del Sitio


La franja horaria es GMT -6. Ahora son las 10:23 AM.

Foro powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.

X