Package: ulex
Title: Unique Location Extractor
Version: 0.1.1
Authors@R: 
    person("Robert", "Marty", , "rmarty@worldbank.org", role = c("aut", "cre"),
           comment = c(ORCID = "0000-0002-3164-3813"))
Description: Extracts coordinates of an event location from text based on dictionaries of landmarks, roads, and areas. Only returns the location of an event of interest and ignores other location references; for example, if determining the location of a road traffic crash from the text "crash near [location 1] heading towards [location 2]", only the coordinates of "location 1" would be returned. Moreover, accounts for differences in spelling between how a user references a location and how a location is captured in location dictionaries. For more information on the algorithm, see Milusheva et al. (2021) <doi:10.1371/journal.pone.0244317>.
License: MIT + file LICENSE
Encoding: UTF-8
RoxygenNote: 7.3.3
Depends: R (>= 4.1.0)
Imports: dplyr, tidyr, readr, purrr, tidytext, stringr, stringi, ngram,
        hunspell, stringdist, tm, raster, parallel, sf, quanteda,
        geodist, spacyr, utils
URL: https://dime-worldbank.github.io/ulex/
NeedsCompilation: no
Packaged: 2026-02-13 18:40:24 UTC; robmarty
Author: Robert Marty [aut, cre] (ORCID:
    <https://orcid.org/0000-0002-3164-3813>)
Maintainer: Robert Marty <rmarty@worldbank.org>
Repository: CRAN
Date/Publication: 2026-02-13 19:10:02 UTC
Built: R 4.6.0; ; 2026-04-30 05:38:17 UTC; unix
