Lexical Borrowing is the adoption of a word from one language into another. The reasons for this are close-contact between languages and social adaptability to globally-recognized customs.
As this is a common phenomenon in world-languages, there are probablistic models for understanding how common it is for languages to borrow from other languages. These models include Bag of Sounds, Markov-Model, and Neural-Network analyses. Each method is defined by whether or not it considers sequential order of lexical items to determine a likelihood score.
#The Scores
##
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
##
## filter, lag
## The following objects are masked from 'package:base':
##
## intersect, setdiff, setequal, union
## bs_f1 md_f1 nd_f1 bs_acc md_acc nd_acc
## 1 0.384 0.621 0.653 0.822 0.806 0.827
## 2 0.727 0.733 0.777 0.843 0.831 0.862
## 3 0.638 0.643 0.748 0.773 0.752 0.821
## 4 0.012 0.469 0.514 0.814 0.778 0.797
## 5 0.576 0.615 0.660 0.714 0.692 0.730
## 6 0.230 0.427 0.425 0.916 0.862 0.859
## 7 0.000 0.376 0.263 0.875 0.798 0.749
## 8 0.383 0.588 0.607 0.829 0.811 0.820
## 9 0.069 0.556 0.527 0.845 0.819 0.788
## 10 0.575 0.641 0.715 0.935 0.914 0.936
## 11 0.689 0.800 0.811 0.851 0.883 0.891
## 12 0.357 0.637 0.639 0.729 0.772 0.774
## 13 0.498 0.560 0.603 0.902 0.859 0.880
## 14 0.507 0.739 0.753 0.767 0.839 0.841
## 15 0.339 0.583 0.550 0.885 0.867 0.848
## 16 0.102 0.485 0.514 0.830 0.783 0.788
## 17 0.337 0.520 0.569 0.929 0.891 0.910
## 18 0.013 0.487 0.498 0.805 0.768 0.777
## 19 0.305 0.649 0.664 0.828 0.853 0.854
## 20 0.000 0.463 0.435 0.875 0.831 0.794
## 21 0.643 0.715 0.710 0.882 0.874 0.874
## 22 0.747 0.729 0.768 0.957 0.935 0.947
## 23 0.632 0.693 0.703 0.938 0.925 0.928
## 24 0.499 0.686 0.710 0.665 0.740 0.766
## 25 0.278 0.600 0.635 0.768 0.785 0.810
## 26 0.142 0.592 0.588 0.645 0.701 0.694
## 27 0.794 0.878 0.878 0.750 0.861 0.861
## 28 0.010 0.387 0.366 0.911 0.844 0.822
## 29 0.645 0.658 0.721 0.853 0.828 0.851
## 30 0.073 0.674 0.684 0.777 0.831 0.834
## 31 0.732 0.761 0.783 0.750 0.768 0.789
## 32 0.160 0.519 0.571 0.790 0.750 0.788
## 33 0.176 0.487 0.506 0.823 0.770 0.774
## 34 0.039 0.454 0.436 0.847 0.765 0.763
## 35 0.578 0.790 0.787 0.899 0.934 0.934
## 36 0.647 0.788 0.765 0.856 0.893 0.880
## 37 0.555 0.726 0.807 0.912 0.915 0.939
#F1 and Accuracy scores Additionally, depending on the frequency of True to False results, a measurement of F1 and Accuracy can be made. An F1 measurement is made when there is a high proportion of False Positive and False Negatives as results from the model. Conversely, An Accuracy measurement deals with True Positives and True Negatives. False results can be explained as detections where there shouldn’t be detection, and True results are proper detections based on the gold-standard (Donor-Fraction).
#Donor-fraction Data for all sampled languages (Gold-Standard):
plot(plot_donor_frac)
**Red indicates that the langauge had less than 100 borrowed tokens tested, which is likely due to the language not having much data to work with. This is meant to show which languages are very Low-Resource.
**Blue indicates that there were over 100 testable tokens, which indicates languages with a higher degree of resources.
**The gold line is used to make each value easier to locate
#Plot of each sampled language tested for borrowings for each model:
plot(plot_all)
## Warning: Removed 2 rows containing missing values (`geom_point()`).
**Red is F1 scores, Green is Accuracy Scores
#Further Testing To understand how some languages might perform better than others based on available resources, it is useful to test with a greater number of donor words. This decreases the sample size of languages, but focuses on the higher-resource languages which have a larger lexicon to compare and contrast. This comparatively asseses the performance of the models on low vs. high resource languges.
#Plot with greater number of donor words
plot(plot_donor_frac_300)
**The number of sampled languages has decreased, as the number of Donor items tested on this set of languages is distinctly greater than the initial set of all languages. This is to focus on specifically moderate to high-resource languages.
**Red indicates that the langauge had less than 300 borrowed tokens tested, which is likely due to the language not having much data to work with. This is meant to show which languages are moderately low-resource.
**Blue indicates that there were over 300 testable tokens, which indicates languages which are generally high-resource.
**The gold line is used to make each value easier to locate
#Plot of scores with greater number of donor words
plot(plot_all_300)
**Red is F1 scores, Green is Accuracy Scores
#Conclusion and Takeaway The performance of the models is not great, as the gold standard is not often met. Though, this depicts how training models on lower-resource languages is much more difficult than training on a language with plentiful amounts of useable data. There are likely many misdetections, whether on datapoints classified falsely-present or falsely-missing. Though, a takeaway from this is that there is room for growth and expansion of the data provided for low-resource languages as it pertains to Machine Learning resources. As linguistic resources become more abundant, more ideas can be communicated through under-represented languages, which advances generative technologies to a larger global audience.
#Works Cited
Miller JE, Tresoldi T, Zariquiey R, Beltra´n Castaño´n CA, Morozova N, List J-M (2020) Using lexical language models to detect borrowings in monolingual wordlists. PLoS ONE 15(12): e0242709. https://doi.org/10.1371/journal.pone.0242709