What Loanwords Tell Us about Spanish (and Spain)

Using one lexicographical tool, the Diccionario Critico Etimologico Castellano e Hispanico (DECH), and two corpora, the HathiTrust’s digital library and the Google Books Ngrams, we tracked the occurrence of thousands of loanwords in Spanish to describe their use, origin, and historical context. In doing so, we used computational methodologies to parse, lemmatize, group, count, and extract the information of all these tools. Results from parsing the etymologies of the DECH dictionary reveal a strong influence of Greek and French on the Spanish lexicon. The results from tracking the occurrence of loanwords in Spanish reveal a clear trend in the use of loanwords over time and support the hypothesis that the lexicon of a language reflects the sociopolitical and sociocultural change that their speakers undergo.


Introduction
Languages change and evolve in many respects but one of the aspects that is most obvious to casual observation is how languages change their word-stock (Trask 2009).
We do not need to wait for several generations to go by to realize that new words are being incorporated into a language, whether they are from foreign languages (loanwords) or whether they are newly coined in the language. Loanwords have trespassed the boundaries of linguistics into the realm of the public opinion, politics and policy. In some cases, language academies, such as the Académie Française, have issued recommendations to avoid the use of "unnecessary" loanwords (Samuel 2011); in others, journalists have voiced complaints about the "usurpation" of Spanish by English (Villarreal 2014) making the incorporation and use of loanwords a topic of public interest. It is neither exaggerated nor gratuitous, then, to concur with Gómez Capuz's (2005, 7) metaphor of loanwords as lexical immigrants, because of their status as "international threats" who arrive to a language and need to live with the threat of expulsion, at least until the point they become conventionalized as part of the host language.
In this study, we aim to describe the use, origin, and historical context of the loanwords that have been incorporated into Spanish over the course of 400 years using two literary corpora made available by HathiTrust Digital Library and Google Books Ngrams, respectively, and a highly comprehensive lexicographical tool, the electronic edition of the Diccionario Crítico Etimológico Castellano e Hispánico dictionary (henceforth, DECH) (Coromines and Pascual 2012). 1 In doing so, we have 1 An earlier version of this study used the Dirae dictionary (Rodríguez Alberich 2014) as a lexicographical tool. Following the suggestion of an anonymous reviewer, this revised version uses the etymological information of the DECH (Coromines and Pascual 2012), which has been reported, repeatedly, as the best, most reliable and most comprehensive source of etymological information for the Spanish language (Haensch and Omeñaca 2004, 143). The DECH, as opposed to the Dirae, is an etymological dictionary (Buchi 2016).

Soto-Corominas et al: What Loanwords Tell Us about Spanish (and Spain)
3 used computational methodologies to parse, lemmatize, group, count, and extract the information of HathiTrust, Google Books Ngram, and the DECH dictionary. This process resulted in a total of almost 160 billion tokens. (A token is an individual unit in the natural language analysis of texts. Words are tokens, as are acronyms, proper names, or temporal marks [e.g., "sXVI" -16th Century], among others.) This project intends to address four main questions about loanwords in Spanish, namely: 1. What language donated more loanwords to Spanish? 2. Are there any marked peaks of loanwords use?
3. If so, do they tell us anything about the language? 4. Can we establish a connection between the use of loanwords and historical circumstances?
The structure of this article is the following: In section 2, we briefly discuss the history of Spanish as it was formed and became in contact with other languages. In section 3, we provide a background of what loanwords are and of their importance in different fields of study. In section 4, we describe our study in detail. In section 5, we provide a discussion of our results.

A Brief Overview of the History of Spanish
Spanish is a member of the Italic branch of the Indo-European family of languages and is currently spoken by over 420 million speakers as a mother tongue and over 90 million as a second language (L2) in several countries in Europe, America and Africa (Lewis, Gary and Fennig 2016).
With the expansion of the Roman Republic and Empire, between 510 BC and 476 AC, Vulgar Latin evolved into a continuum of overlapping varieties, some of which were mutually unintelligible, thus giving rise to many European languages, one of which was Spanish (Penny 2002). Latinization of the Iberian Peninsula began in 218 BC and lasted roughly two centuries. The geographical distribution of the several languages that existed in the Iberian Peninsula in pre-Roman times was complex but many of the inhabitants of the Peninsula are believed to have  been competent bilinguals in Latin and in their own pre-existent languages (Adams 2003, 279-283;Penny 2002, 255). The pre-Roman languages are believed to have left a substrate influence, albeit minimal, on the subsequent Latin used in the Peninsula.
Whereas the later Visigoth conquest of Spain (585AD) had little effect on the Latin spoken in the Peninsula, the Islamic Conquest of the Peninsula in 711AD (whose outcome was a continuous presence of their cultural and linguistic influence that lasted for about 5 centuries) had an enormous impact: numerous words and phrases and even some morphology was taken from Arabic and included into Spanish, proving the significance of the prolonged contact between the two languages (Penny 2002, 16).
In this study, we count the pre-Roman, Latin, Arabic, and Visigoth influences as the ones that shaped the development of Spanish before the establishment of the Crown of Castile in 1230, a political process through the union of the previously independent kingdoms of Castile and Leon. We will count all lexical items that derived directly or indirectly from these languages as baseline Spanish (or core Spanish). 2 The reason why we take 1065 as a cutoff date is because of its importance for the linguistic identity of Castilian Spanish. The battles and unions that took place between 1065 and 1230 culminated (linguistically) with the creation of an early standard Spanish thanks to the work of Alfonso X the Learned, king of Castile and Leon (1252-84) (Fernández-Ordóñez 2004;Penny 2002).

Spanish in Contact
During its birth and growth, Spanish was not the only language spoken in the Iberian Peninsula. Other Latin-based dialects (Astur-Leonese, Catalan, Galician-Portuguese and Navarro-Aragonese) were also becoming independent, full-fledged languages during the 10 th and 11 th centuries (Lapesa 1990, 38). These languages together with 2 While it is true that there had been Greek colonies in present-day Spain before the arrival of the Romans, they left very few words: toponyms (Empúries, Roses) and, probably, the word seta ('mushroom'). Because of this, Greek is not counted as substrate despite early contacts (Dworkin 2012;Penny 2002). For the same reason, we do not count Greek as baseline Spanish in this study. Tell Us about Spanish (and Spain) 5 Basque, a language isolate spoken in the northern part of the Peninsula, occupied and sometimes shared the geographical space of the Peninsula.

Soto-Corominas et al: What Loanwords
In the 15 th and 16 th centuries, Spanish expanded to many sites overseas (such as the Canary Islands, the American, and the Philippines) as a result of the work of settlers, soldiers, and missionaries. In linguistic terms, the colonial expeditions of the Spanish to the Americas in 1492 made Spanish more widely spoken and gave rise to more contact scenarios, in this case with various Amerindian languages.
Direct and prolonged contact with all this variety of languages produced several additions to the Spanish vocabulary (Dworkin 2012;Penny 2002). Although these contact situations had been ongoing by the time the first official dictionary of Spanish, the Diccionario de Autoridades, was published by RAE in 1726, we will count the lexical items that came from these languages as loanwords as these were not existent in the creation of the aforementioned "standard."

Loanwords
We have briefly mentioned that Spanish has been very prolific in terms of borrowing all sorts of linguistic components from the languages it has had contact with, and this language is by no means an exception. Most world languages have borrowed from the languages they have maintained contact with, even when bilingualism in the speakers of the donor and recipient languages has been infrequent (Durkin 2009, 132;Kaufman and Thomason 1988, 47;Sayahi 2011, 86).
This study focuses on the borrowing of lexicon and its associated meaning, which results in loanwords (Durkin 2009, 134). We take Tagliavini's (1949, 369) etymological based definition of loanwords: "a word in a language that comes from another language, different from the one that constitutes the basis of the borrowing language or that, if it does originate in that language, it is not obtained through regular, continuous, and popular transmission, but borrowed later on." There is a plethora of possible reasons as to why languages may borrow lexicon from other languages: language economy, fashion, need for (more appropriate) terms (Durkin 2009), clarification, impact, precision, attenuation, snobbism, prestige (Gerding et al. 2012, identity, adaptation, or dialect/language leveling (Young 1996).
Since borrowing is a highly common process, it has patterns: content words (such as nouns or verbs) are borrowed more frequently than function words (such as prepositions or conjunctions). In turn, nouns are borrowed more than any other part of speech (such as adjectives or adverbs) (Matras 2009). It is thought that both referential transparency and morphosyntactic freedom are factors that ease borrowing of nouns (Matras 2009).

How Do Languages Borrow?
As we have described before, languages borrow all sorts of linguistic components from other languages. Thomason and Kaufman (1988, 37) define borrowing as "the incorporation of foreign features into a group's native language by speakers of that language: the native language is maintained but is changed by the addition of the incorporated features". A possible way in which languages borrow is proposed by Backus (in Zenner and Christiansen 2014) and Croft (2000, 211): a speaker who speaks language A and, to some extent, language B, has two choices when faced with a communicative task, saying a concept in a familiar way (that is, using language A) or saying it in a creative way (using language B). Making the "creative decision" will imply an innovation, also known as "altered replication". Loanwords (and all types of innovations) very often die soon after they are born and never become part of language A. The more this innovation (or foreign incorporation) is repeated and encountered, the more entrenched it becomes. If an innovation becomes entrenched enough, it may end up being conventionalized as part of language A.
If the loanword from language B conveys a meaning that did not exist in language A, loanwords are typically accepted without much resistance. This could be the case of the word kimono, which entered English (among many other languages) from Japanese to name a concept that was previously nonexistent and/or unknown to English-speaking populations. It is possible, however, that the loanword from language B overlaps in a position that was already occupied in language A. When this is the case, both words are in competition and more than just one outcome is possible. In the first place, one of the two may become obsolete, as it is the case of the Old English word firen, which was replaced by the French word crime (Ringe and Taylor 2014). It is also possible that both words stay on language A with highly similar meanings (such as English kind and French loanword type). Both words can stay with more obvious differences in meaning (for English, this would be the case for word pairs such as the Germanic word "cow" and the Old French loanword "beef"), or as words used by different groups of people or for different purposes (such as English "ant" and the scientific Latin loanword "formic").

The Importance of Loanwords
While loanwords played a somewhat peripheral role in the early study of Linguistics (Gómez Capuz 2005, 11), more recently, many studies, especially in the field of language contact and sociolinguistics (Adalar and Tagliamonte 1998;Arroyo and Tricker 2000;Poplack and Dion 2012;Stammers and Deuchar 2011) have investigated the incorporation, use, and popularization of loanwords over time. The study of loanwords provides valuable data for studying language change (Backus in Zenner and Christiansen 2014, 19). Layers of loanwords in a language (such as the bulk of loanwords from Old Norse and French in English) tell us about the past contacts between speakers of the donor and recipient languages, and the kind of words that were borrowed inform us about the nature of the contact (Bynon 1977, 231).

Our Study
Our present study focuses specifically on written text. The reasons why we are focusing on written language are several. First of all, written language has been shown to display a higher ratio of lexical items to total running words than spoken language, which is known as lexical density (Halliday 1989, 61). A high lexical density is desirable in that it gives us access to a greater number of lexical items than if we used spoken language. Secondly, written language does not display as much inherent variability of forms as spoken language does (Poplack and Dion 2012) and it leaves out some aspects that are difficult to analyze (i.e. prosodic information or paralinguistic features). In addition, studies that analyze speech samples can only look back to some 80 years of history whereas the study of written samples allows for a much higher retrospective outlook. Equally importantly, writers tend to use the standard language (unless it is to create a particular effect). Therefore, it is reasonable to assume that when words appear in a book, they have been present in the speech for a relatively long amount of time; i.e. they have become entrenched.
The last reason, but not less important, is practicality. Written texts are already transcribed (and in this case, digitized), which makes them easier to be processed computationally.
There are some corpora for spoken Spanish: Corpus Oral de Referencia de Differently from other sociolinguistic and language contact studies, our investigation does not focus necessarily on the language production of a bilingual territory. In most cases, authors were monolingual and lived in stable monolingual zones. Therefore, the fact the we see words borrowed from other languages is not necessarily the result of personal or societal bilingualism but of established borrowing processes.

Research Questions
To remind the reader, in this study we seek to answer four main questions: 1. What language donated more loanwords to Spanish? 2. Are there any marked peaks of loanwords use?
3. If so, do they tell us anything about the language? 4. Can we establish a connection between the use of loanwords and historical circumstances?

Methodology
In order to collect a dataset as exhaustive and extensive as possible that would allow us to address our aforementioned questions, we resorted to two corpora made publicly available, the HathiTrust Digital Library (henceforth: HT) with its Spanish corpus of 146,635 texts (Capitanu et al. 2015); and the Google Books Ngram dataset V2 (NGram) and its Spanish portion comprising 854,649 texts (Lin et al. 2012). Each text in HT is represented as a compressed JSON file that includes metadata about the volume in which it was originally published, such as the year of publication or the author if known, and a list of pages. Each of these pages contains a frequency map for each of the individual tokens found in an automated part-of-speech (POS) tagging task of the text in the page. Order and structure are lost, and the original text cannot be reconstructed. Although this might represent a problem to other studies, it is not problematic to ours because word counts were the only requirement to address our questions.
To analyze the 33GB of JSON data we used the Apache Spark toolkit (Meng et al. 2015;Zaharia et al. 2010), an upcoming de facto standard for big data analysis, and the Python bindings that it provides, together with some of the scientific stack tooling in the Python ecosystem (mainly Scipy, Numpy, Pandas, Cython, matplotlib, seaborn and Jupyter). Cleaning and aggregating word counts per year for the 22,236,839,455 syntactically annotated tokens (29,105 were unique lemmas) in HT took 16 hours in a 16GB RAM 8-core Intel® Core™ i7 machine.
Despite containing several times more tokens (140,363,350,682 1-grams, and 46,067 unique lemmas), the NGram dataset was smaller: around 10GB of clean tabulated data with calculated word counts per year. Processing NGram was easier when compared to the HT format since the NGram dataset only contains isolated information about words (some POS annotated), counts, and years and volume of apparition. An additional problem that the HT database posed was that it only allowed us to use texts up to the copyright start date, that is, volumes that were published in the US before 1923 or outside the US before 1876. Hence, and as we will see in the results sections, our only source for words in the last century comes from the NGram dataset.
Once the first word counts were calculated, we lemmatized them and ignored proper nouns and other constructions (such as initials, numbers, or words with numbers). Lemmatization of Spanish words was carried out using the lexicon Identifying which lemmas were loanwords was possible thanks to the etymological information contained in the electronic edition of the DECH.
These etymologies, only available for roughly a 21% of the lemmas (19,446) were expressed in natural language, making the extraction of the source language very difficult. We built a grammar to recognise the tree structure of the etymology statements. As an example, consider the etymology for the lemma "crónica": Del latín chronĭcus, y este del griego χρονικός chronikós; la forma femenina, del latín chronĭca, y este del griego χρονικά [βιβλία] chroniká However, given the complexity of the language used to express these etymologies, in some cases we had to automatically traverse the resulting tree after parsing the grammar to fix some mistakes.
We classified the 437 language tags that the DECH uses to define etymological origin in 10 categories in order to capture, in a group, a set of languages that would share a geographic and temporal relation with regards to the Spanish language.
The groups, with some of their more representative languages in terms of their contribution to the Spanish lexicon, are shown below. Note that we are not including all the source languages that the DECH specifies, but only those that served as donor we counted these items as belonging to the baseline. Therefore, we acknowledge that the number of loanwords from Latin is higher in reality but, unfortunately, this is a limitation of this otherwise highly specific and thorough dictionary.
English was left as its own group because of its unique relationship to Spanish.

Donor Languages
Out of the 65,357 lemmas (and definitions) included in the DECH dictionary, 33,529 counted with etymology information we were able to extract. And although 19,446 were found to be loanwords, only 6,827 appeared in our corpora and came from languages other than Latin and Arabic, which again, were counted as baseline Spanish. When looking at the donor languages for these lemmas, shown in Figure 1, we found that Greek and French were the most prolific languages in donating lexical items to Spanish: 2,191 words come from Greek and 1,447 from French. 4 The counts that appear in Figure 1 disregard the notion of frequency in the language. That is, 4 Note that for this specific subsection we are not using grouped languages but individual ones to gain a more specific understanding of which languages were most often resorted to by Spanish in need for new lexicon. low frequency words such as ñacundá ('Nancunda nighthawk') are equivalent to one word, just as high-frequency lemmas such as maíz (' corn').
The majority of the most prolific donor languages in Figure 1 are not surprising. After all, Spanish (in all Spanish-speaking nations) shares a geographic relation or a historical or political link with most of these languages. One of the notable exceptions is Greek, which appears as the top donor to Spanish. The great number of Greek loanwords may be unexpected at first. Spain and Greece have not established direct relations through colonial expansion, wars, or trading in the past centuries (other than the one described in Footnote 2). Upon careful observation of the Greek loanwords, we realize that the borrowing process for this language is unlike the one for the other languages. It could be deemed as being more "artificial". Ancient Greek has been resorted to in need for scientific and technical terms from ancient times until nowadays (Dworkin 2012;Gutiérrez Rodilla 1998). Besides the great amount of words that originated in Greek and made their way through Spanish via the Vulgar Latin and the Arabic spoken in the Iberian Peninsula before the 20th century (which, again, have not been counted as Greek loanwords in this study), we find a great amount of Ancient Greek loanwords in Spanish that were borrowed, unmediated, after the 18th century (Fernandez Galiano 1980). Examples of this type are didáctico ('didactic'), asfixia ('asphyxia'), or fase ('phase'). In the 19 th and 20 th century, Ancient Greek, as the first internationally prestigious language in history (Bergua Cavero 2002), was often resorted to due to the need to keep up with the rapidly evolving fields of science and technology. New inventions and discoveries, growing by leaps and bounds, required names. While the common vocabulary has its limits in terms of speed and growth, the scientific and specialized vocabulary required immediate additions, and Ancient Greek was often used as a tool (Fernández-Sevilla 1982;Gutiérrez Rodilla 1998). It is precisely because loanwords from Ancient Greek are specialized vocabulary that investigations that focus on casual speech or press corpora might overlook the fact that a great amount of Spanish words were loaned by this language. These type of words are simply not English, occupying a seventh place in the donor list deserves a special mention.
The "high" amount of English loanwords in Spanish has recently generated backlash from linguistic authorities, concerned journalists, and self-aware speakers who are worried about the purity (or lack thereof) of the language (see Pérez Tamayo [2002] for a discussion of English calques; Villareal 2014). While it is true that English has loaned high-frequency words such as gol ('goal') or gay ('gay') that are found in the literature, the reality is that our results need to be taken in the context of the corpora we have used. Two main reasons make the results for English only partially representative of the linguistic reality of Spanish nowadays. First of all, as we mentioned, literature tends to be more conservative in terms of lexicon used.
Therefore, English loanwords that are being used in Spanish casual speech may have still not made it into the literature. Loanwords such as selfie or online are increasingly common, but are not equally present in Spanish literature. Secondly, and parallel to that, linguistic authorities such as the Real Academia Española (RAE) are more cautioned in terms of which words are included in the dictionary. Going back to selfie and online, neither of them is included in a dictionary (probably because they did not make the cut in terms of use and validity in the Real Academia Española's last edition of the dictionary) while a quick Google Search for Spanish websites including these words yields thousands of results. For these reasons, studies that investigate the use of loanwords which have not been incorporated to dictionaries in casual speech or in texts that describe current affairs find a greater presence of English loanwords (Esteban Asencio 2008;Gerding et al. 2012). In other words, our methods have analyzed words that have been present in the language for a long time and have been conventionalized into Spanish. While it is true that nowadays there are many loanwords that are fashionable and highly common, we cannot foresee for how long they might last.

Frequencies
As mentioned in Section 3, the 437 reported donor languages were divided into 10 groups with only English being left by itself due to the difficulty of associating it with other languages. Our two databases, HathiTrust and Google Books NGrams, have different data and, because of this, their results will be presented separately.

HathiTrust
In the stacked percentage area chart shown in Figure 2 (and 3 below), the 100% on the Y axis refers to the total of loanwords used in the corpus for that year (X axis) in the Spanish texts annotated in HathiTrust. That is, this figure does not inform the reader of how many loanwords were used (which is discussed below in Section 4.3.3), only of how loanwords were divided according to language origin.
In the 146,635 texts in Spanish available in HathiTrust between years 1700-1923, there were 22,236,839,455 syntactically annotated tokens, out of which we lost the information of 65%. This percentage contained a variety of cases: words that were not included in the DECH dictionary because they were loanwords (or other neologisms) that had not been normalized in the language yet, because they were initials, acronyms or proper nouns, or because the OCR failed to transcribe them correctly. Besides that, a certain degree of noise is observed before 1840, showing that the amount of data is insufficient to draw firm/definite conclusions.
What can be observed in Figure 2 is, first of all, the preponderance of certain language groups, namely of Eastern and Western Europe and, to a lesser extent, of Ancient Europe and Iberian Peninsula. Leaving aside the question of Eastern European languages momentarily, the predominance of the other three groups reiterates the importance of geographical proximity and the fact that Greek and French were not only prolific in donating lexicon to Spanish, but that their loanwords were frequently used in the literature and in the scientific texts collected by HathiTrust. Now, the frequency of loanwords donated by Eastern European languages might be slightly misleading at first. There has not been any direct contact, historically, between Spanish and these languages, and Eastern European languages were not resorted to in order to coin new terms for the sciences. Upon closer inspection, the two most common terms donated by this group of languages are coche 'car', from Hungarian, and soviet 'soviet', from Russian. However, the first word appears 476,206 times in total, while the latter, the closest in frequency, only appears 15,673 times. Therefore, it is easy to see that the graph reflects the high frequency of coche.
One anonymous reviewer posed the question of what is more informative, the number of loanwords that a language borrows from a donor language or the frequency of such loanwords. The case of Eastern European languages is perfect to speak to this question. According to the DECH, Hungarian has only donated two terms to Spanish, one of them being coche. French, on the other hand, has donated more than 1,400 lexical items, many of which are not as frequent in Spanish as coche. Therefore, we can claim that both the number of borrowed words and the frequency of such borrowed words inform us about different aspects of the contact and relationship between languages.

Google NGrams
The Google Books Ngram dataset was comparatively larger at 854,649 texts in Spanish with 140,363,350,682 1-grams between years 1500-2000. As apparent in Figure 3, we also find a significant degree of noise in the data, specifically before 1780.
The results of Google Ngrams largely correlate with those of HathiTrust, especially in terms of the importance of Ancient and Western European languages.
What this database allows us to see, due to the increased years of its span, is a steady increase of English loanwords during the second half of the 20 th century. Therefore, these results correlate with those that claim that, while English has influenced Spanish vocabulary for centuries, it is only over the past 50 years that there has been a massive influx and use of these loanwords (de la Cruz Cabanillas et al. 2007). In addition, it should be noted that this study [or rather the etymological sources it makes use of] does not make a distinction between British and American English and although we can assume that they have influenced Spanish at different times, we cannot prove it with data 3.3 Loanwords vs. "Core" Spanish.
In Section 2, we discussed how the words entering Spanish through certain languages (namely, Latin, Arabic, and Iberian Peninsula substrate) would be considered "core" Spanish for this study. Table 1 shows the number of loanwords and core language words per century as well as the percentage of loanwords over the total of that century. Apart from the 16 th -century data for which the corpora only contain 25 years, the average peak of loanwords happens during the 17 th Century, with a 26.76% of words originating in donor languages. This means that more than 1 out of 4 words contained in Spanish cultured language, that is, the type of language used in literature, law, academic and scientific books, was taken from other languages.
In order to draw final conclusions about the significance of the data, a comparison with the level of borrowing in other similar languages would be required. However, it can be claimed with confidence that an average of 26.76% is a very high degree of influence of foreign languages and cultures on a given language, and that a sustained relation of this kind over a long period of time would be indicative of either a great permeability of the recipient language or of a pronounced anxiety in the local elite classes (to which the authors writing these books belong), to conform their knowledge and expression to that of the most prestigious (international) producers of knowledge of the time. After the 17 th Century, the data shows a steep decline that takes the percentage of loanwords to only 16.9% in the 18 th Century. We believe that this decline is the direct result of the control over the use of prescriptive Spanish exercised by the Real Academia Española starting this century, a control that has permeated society through the educational system, television and newspapers and is still very much present in public debates nowadays. In general terms, this control means that good written Spanish is to use as much vocabulary from Spanish as possible and, in consequence, the fewest amount of loanwords. Theoretically, the best Spanish would be that which draws the most lexical units from classical Spanish literary authors, specially from the Golden Age (16 and 17 th centuries), the Silver Age (from 1914 up to the so called literary generation of 1927) or the best authors of the last part of the 20 th Century.
After the 18 th Century, and as we will expand in the following section, we see a small yet continuous upwards trend in the use of loanwords. This progressive use of more loanwords after the 18 th Century shows the pressures of the current times.

Highest Use of Loanwords: The Peninsular War
Regardless of the position of the Real Academia Española about what it means to write good Spanish, it is clear that there is a relationship between international affairs and the level of loanwords present in Spanish at certain historical moments.
This is more evident when we descend to the scale of years in our data. In Figure 4, we can see the percentage of loanword usage per year as compared to that "core"

Discussion and Conclusions
As Fernández-Sevilla (1982, 21) argued, some words are testimonies of social, sociopolitical and sociocultural change. Loanwords in Spanish have proven this hypothesis right: they told us a story, not only the story of when they were borrowed or of how they were used, also of what the parties involved in these sociocultural changes were and what the nature of the sociocultural exchange was. This study supports the claim that language does not stand on its own, but that it rather is the product of a combination of political, social, and economic factors (Lapesa 1990, 35).
None of the loanword donor languages and none of the peaks, as we have seen, were fortuitous.
Some of our results might seem counterintuitive at first, the first one being that Greek is the most common source language for Spanish loanwords. However, as we have showed, there is a reason for that: the native vocabulary has its limits in HathiTrust and Google NGrams were easily justifiable -both languages gave Spanish a plethora of words that abound in these types of texts.
The progressive upward trend in the use of loanwords observed in Figure 4, despite the work of the Real Academia Española to "control" the amount of loanword use, reflects the permeability of the language and its need to resort to the use of this new lexical items. This need, especially apparent in cultured texts, such as the ones contained in HathiTrust and Google Ngrams, far from stopping, keeps increasing as political and cultural exchanges, trade and globalization affect the shape of human communication and make languages more porous to external influences.
As we saw, the increase of English loanwords towards the end of the 20 th century correlates with the public opinion: Spanish is using words borrowed from English more frequently (which probably correlates with the fact that Spanish is borrowing more and more words from English). However, as we showed in section 4.3.2.2, those numbers are still very far from reaching the widespread use of established French and Greek loanwords.
For the emerging area of cultural analytics, our study shows a promising path of enquiry into inter-cultural relations. The data of the year with highest presence of loanwords in Spanish shows a strong relation between historical periods in which Spain was very open to foreign. In order to draw stronger conclusions, two elements are needed. First, we would need a point of comparison with which we would be able to establish levels of loanwords presence in target languages when the subject nations are entangled in military and/or diplomatic conflicts of large proportions.
For instance, is there a quantifiable increase in the use of Japanese words in Korean between 1910-1945? Second, the data needs to be of enough quality at the year level so that we can pinpoint specific years in which the influence is felt and recorded, which due to rhythms of cultural integration and production, it rarely coincides with years of publication of books.
In the case of the highest use of loanwords in Spanish, it has to be noted that the years surrounding 1809 are especially significative in the case of Spain. In addition to the already mentioned War of Independence between Spain and the Napoleonic armies, two other historical facts must be taken into account. First, we have the strong and continued cultural influence of France through the Enlightenment.
Second, the years following the re-installation of King Ferdinand VII in the Spanish throne are immediately followed by the independence of the Spanish territories in the Americas. The intellectual revolutions that inspired those wars of independence and led to the birth of Latin American countries have a great debt with French and North American ideas and authors.

Limitations of this Study
The main limitation of this study is the same one as our main point of support: our total reliance on previous etymological information. Etymology is not an exact science and it needs to make use of whatever resources loanwords have to offer.
Deciding whether a word entered Spanish via Latin, or French, or Italian is extremely difficult if the word does not come from pre-Roman languages (Varela Merino 2009).
In addition, while the DECH is continuously credited as an extremely reliable source of etymological information, its specificity has its limits. Words that were loaned by Latin in modern times (that is, well after the creation of "standard" Spanish) were overlooked (and thus not counted as loanwords) due to the fact they were not always marked as modern loanwords in our lexicographical tool.
The second limitation is our data. Whatever was in HathiTrust and Google Books NGrams, that is what we worked with. Their data made up an unprecedented amount of tokens that we could analyze, but it also came with its limitations: some written works were included, and some were not. Had we included everything, our results could have changed. However, we do believe these results to be representative.
The last limitation is, perhaps, the decisions we had to make, specifically, what counts as "core" Spanish and what does not. We decided on Latin, Iberian substrate and Arabic as forming it, although some linguists and philologists might disagree on the latter.
Whereas the amount of data to be processed did not impose a limitation by itself, although it was challenging at times, decisions were made for practical reasons that might have impacted the results. We tried to minimize the extent of code and algorithm effects while preserving the accuracy and fidelity of the data.
Unfortunately, some of these decisions were arguably not ideal: when extracting the etymology of a word, after converting to lowercase, we first checked the word, and then the lemma, giving more importance to nouns than conjugated verbs.
Moreover, if a number was found in between the word, such as "se3n" in HT, we removed the word. Lemmatization was also imperfect, and disambiguation was not taken into account as part of the process, therefore proper nouns were considered regular nouns and language of the first definition in the dictionary was used.