{
  "_id": "6a207db7cd65a98ecbd173e1",
  "Type": "Package",
  "Package": "text2map",
  "Title": "R Tools for Text Matrices, Embeddings, and Networks",
  "Version": "0.3.0",
  "Authors@R": "c(person(given = \"Dustin\",\nfamily = \"Stoltz\",\nemail = c(\"dss219@lehigh.edu\"),\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-4774-0765\")),\nperson(given = \"Marshall\",\nfamily = \"Taylor\",\nemail = \"mtaylor2@nmsu.edu\",\nrole = c(\"aut\"),\ncomment = c(ORCID = \"0000-0002-7440-0723\")))",
  "Author": "Dustin Stoltz [aut, cre]\n(<https://orcid.org/0000-0002-4774-0765>), Marshall Taylor\n[aut] (<https://orcid.org/0000-0002-7440-0723>)",
  "Description": "This is a collection of functions optimized for working\nwith various kinds of text matrices. Focusing on the text\nmatrix as the primary object - represented either as a base R\ndense matrix or a 'Matrix' package sparse matrix - allows for a\nconsistent and intuitive interface that stays close to the\nunderlying mathematical foundation of computational text\nanalysis. In particular, the package includes functions for\nworking with word embeddings, text networks, and document-term\nmatrices. Methods developed in Stoltz and Taylor (2019)\n<doi:10.1007/s42001-019-00048-6>, Taylor and Stoltz (2020)\n<doi:10.1007/s42001-020-00075-8>, Taylor and Stoltz (2020)\n<doi:10.15195/v7.a23>, and Stoltz and Taylor (2021)\n<doi:10.1016/j.poetic.2021.101567>.",
  "URL": "https://culturalcartography.gitlab.io/text2map",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "BugReports": "https://gitlab.com/culturalcartography/text2map/-/issues",
  "Roxygen": "list(markdown = TRUE)",
  "Config/testthat/edition": "3",
  "Config/Needs/website": "rmarkdown",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://dustinstoltz.r-universe.dev",
  "Date/Publication": "2026-06-03 17:04:23 UTC",
  "RemoteUrl": "https://gitlab.com/culturalcartography/text2map",
  "RemoteRef": "HEAD",
  "RemoteSha": "c62b1d13399eb247aaa9befce1240604e5ff4e80",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-03 19:12:44 UTC",
    "User": "root"
  },
  "Maintainer": "Dustin Stoltz <dss219@lehigh.edu>",
  "MD5sum": "9b624e203de24f283ef635d8684a3dcc",
  "_user": "dustinstoltz",
  "_type": "src",
  "_file": "text2map_0.3.0.tar.gz",
  "_fileid": "e8b460450f68f06851e6510ece02cbc27992232022228a88cf3ac82c535d1a8f",
  "_filesize": 810099,
  "_sha256": "e8b460450f68f06851e6510ece02cbc27992232022228a88cf3ac82c535d1a8f",
  "_created": "2026-06-03T19:12:44.000Z",
  "_published": "2026-06-03T19:17:11.175Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79375122772,
      "time": 198,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7394398264"
    },
    {
      "job": 79375122810,
      "time": 197,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7394397679"
    },
    {
      "job": 79375123042,
      "time": 229,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7394396706"
    },
    {
      "job": 79375122769,
      "time": 144,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7394373653"
    },
    {
      "job": 79374440793,
      "time": 221,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7394328670"
    },
    {
      "job": 79375122964,
      "time": 137,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7394377327"
    },
    {
      "job": 79375122787,
      "time": 158,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7394384756"
    },
    {
      "job": 79375122845,
      "time": 158,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7394384896"
    },
    {
      "job": 79375122798,
      "time": 159,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7394385004"
    }
  ],
  "_buildurl": "https://github.com/r-universe/dustinstoltz/actions/runs/26906968911",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://gitlab.com/culturalcartography/text2map",
  "_commit": {
    "id": "c62b1d13399eb247aaa9befce1240604e5ff4e80",
    "author": "Dustin Stoltz <stoltzd@fastmail.com>",
    "committer": "Dustin Stoltz <stoltzd@fastmail.com>",
    "message": "Move heavy deps to Suggests for CI/CD compatibility\n\nMove text2vec, igraph, ClusterR, and RSpectra from Imports to Suggests.\nAdd requireNamespace() checks before calling functions from these\npackages, providing informative error messages when they are missing.\nThis allows the package to install on macOS and older R versions\nwhere these packages may have compilation issues.\n",
    "time": 1780506263
  },
  "_maintainer": {
    "name": "Dustin Stoltz",
    "email": "dss219@lehigh.edu",
    "login": "dustinstoltz",
    "mastodon": "@dustinstoltz@fediscience.org",
    "description": "Sociologist. Computational Social Scientist. I mostly use GitLab.",
    "uuid": 6200517,
    "orcid": "0000-0002-4774-0765"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Matrix",
      "version": ">= 1.4.2",
      "role": "Depends"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "doParallel",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "role": "Imports"
    },
    {
      "package": "stringi",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "kit",
      "role": "Imports"
    },
    {
      "package": "fastmatch",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "rsvd",
      "role": "Imports"
    },
    {
      "package": "permute",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "pillar",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "tm",
      "role": "Suggests"
    },
    {
      "package": "quanteda",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "text2vec",
      "role": "Suggests"
    },
    {
      "package": "igraph",
      "version": ">= 1.2.6",
      "role": "Suggests"
    },
    {
      "package": "ClusterR",
      "role": "Suggests"
    },
    {
      "package": "RSpectra",
      "role": "Suggests"
    }
  ],
  "_owner": "gitlab-culturalcartography",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-50",
      "n": 1
    },
    {
      "week": "2026-05",
      "n": 5
    },
    {
      "week": "2026-06",
      "n": 2
    },
    {
      "week": "2026-07",
      "n": 2
    },
    {
      "week": "2026-14",
      "n": 1
    },
    {
      "week": "2026-16",
      "n": 36
    },
    {
      "week": "2026-17",
      "n": 12
    },
    {
      "week": "2026-23",
      "n": 2
    }
  ],
  "_tags": [],
  "_userbio": {
    "uuid": 6200517,
    "type": "user",
    "name": "Dustin Stoltz",
    "description": "Sociologist. Computational Social Scientist. I mostly use GitLab."
  },
  "_downloads": {
    "count": 222,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/text2map"
  },
  "_devurl": "https://gitlab.com/culturalcartography/text2map",
  "_pkgdown": "https://culturalcartography.gitlab.io/text2map",
  "_searchresults": 32,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/text2map.html",
    "manual.pdf"
  ],
  "_homeurl": "https://gitlab.com/culturalcartography/text2map",
  "_realowner": "dustinstoltz",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2021-08-24"
    },
    {
      "version": "0.1.1",
      "date": "2021-10-22"
    },
    {
      "version": "0.1.3",
      "date": "2022-01-24"
    },
    {
      "version": "0.1.4",
      "date": "2022-04-12"
    },
    {
      "version": "0.1.5",
      "date": "2022-05-23"
    },
    {
      "version": "0.1.6",
      "date": "2022-08-17"
    },
    {
      "version": "0.1.7",
      "date": "2023-06-20"
    },
    {
      "version": "0.1.8",
      "date": "2024-01-15"
    },
    {
      "version": "0.1.9",
      "date": "2024-03-12"
    },
    {
      "version": "0.2.0",
      "date": "2024-04-11"
    },
    {
      "version": "0.2.3",
      "date": "2026-02-16"
    }
  ],
  "_exports": [
    "cmdist",
    "CMDist",
    "coca",
    "CoCA",
    "doc_centrality",
    "doc_similarity",
    "dtm_builder",
    "dtm_melter",
    "dtm_resampler",
    "dtm_stats",
    "dtm_stopper",
    "find_projection",
    "find_rejection",
    "find_transformation",
    "get_anchors",
    "get_centroid",
    "get_direction",
    "get_regions",
    "get_stoplist",
    "perm_tester",
    "rancor_builder",
    "rancors_builder",
    "seq_builder",
    "test_anchors",
    "tiny_gender_tagger",
    "vocab_builder"
  ],
  "_datasets": [
    {
      "name": "anchor_lists",
      "title": "A dataset of anchor lists",
      "object": "anchor_lists",
      "file": "anchor_lists.rda",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "pole1",
        "pole2",
        "relation",
        "domain"
      ],
      "rows": 668,
      "table": true,
      "tojson": true
    },
    {
      "name": "ft_wv_sample",
      "title": "Sample of fastText embeddings",
      "object": "ft_wv_sample",
      "file": "ft_wv_sample.rda",
      "class": [
        "matrix",
        "array"
      ],
      "fields": {},
      "rows": 770,
      "table": true,
      "tojson": true
    },
    {
      "name": "jfk_speech",
      "title": "Full Text of JFK's Rice Speech",
      "object": "jfk_speech",
      "file": "jfk_speech.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "sentence_id",
        "sentence"
      ],
      "rows": 84,
      "table": true,
      "tojson": true
    },
    {
      "name": "meta_shakespeare",
      "title": "Metadata for Shakespeare's First Folio",
      "object": "meta_shakespeare",
      "file": "meta_shakespeare.rda",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "short_title",
        "gutenberg_title",
        "gutenberg_id",
        "genre",
        "year",
        "body_count",
        "boas_problem_plays",
        "death"
      ],
      "rows": 37,
      "table": true,
      "tojson": true
    },
    {
      "name": "stoplists",
      "title": "A dataset of stoplists",
      "object": "stoplists",
      "file": "stoplists.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "word",
        "fox1990",
        "nltk2009",
        "onix2000",
        "smart1993",
        "snowball2001",
        "snowball2014",
        "tiny2020",
        "van1979"
      ],
      "rows": 754,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "anchor_lists",
      "title": "A dataset of anchor lists",
      "topics": [
        "anchor_lists"
      ]
    },
    {
      "page": "CMDist",
      "title": "Calculate Concept Mover's Distance",
      "topics": [
        "CMDist",
        "cmdist"
      ]
    },
    {
      "page": "CoCA",
      "title": "Performs Concept Class Analysis (CoCA)",
      "topics": [
        "CoCA",
        "coca"
      ]
    },
    {
      "page": "doc_centrality",
      "title": "Find a specified document centrality metric",
      "topics": [
        "doc_centrality"
      ]
    },
    {
      "page": "doc_similarity",
      "title": "Find a similarities between documents",
      "topics": [
        "doc_similarity"
      ]
    },
    {
      "page": "dtm_builder",
      "title": "A fast unigram DTM builder",
      "topics": [
        "dtm_builder"
      ]
    },
    {
      "page": "dtm_melter",
      "title": "Melt a DTM into a triplet data frame",
      "topics": [
        "dtm_melter"
      ]
    },
    {
      "page": "dtm_resampler",
      "title": "Resamples an input DTM to generate new DTMs",
      "topics": [
        "dtm_resampler"
      ]
    },
    {
      "page": "dtm_stats",
      "title": "Gets DTM summary statistics",
      "topics": [
        "dtm_stats"
      ]
    },
    {
      "page": "dtm_stopper",
      "title": "Removes terms from a DTM based on rules",
      "topics": [
        "dtm_stopper"
      ]
    },
    {
      "page": "find_projection",
      "title": "Find the 'projection matrix' to a semantic vector",
      "topics": [
        "find_projection"
      ]
    },
    {
      "page": "find_rejection",
      "title": "Find the 'rejection matrix' from a semantic vector",
      "topics": [
        "find_rejection"
      ]
    },
    {
      "page": "find_transformation",
      "title": "Find a specified matrix transformation",
      "topics": [
        "find_transformation"
      ]
    },
    {
      "page": "ft_wv_sample",
      "title": "Sample of fastText embeddings",
      "topics": [
        "ft_wv_sample"
      ]
    },
    {
      "page": "get_anchors",
      "title": "Gets anchor terms from precompiled anchor lists",
      "topics": [
        "get_anchors"
      ]
    },
    {
      "page": "get_centroid",
      "title": "Word embedding semantic centroid extractor",
      "topics": [
        "get_centroid"
      ]
    },
    {
      "page": "get_direction",
      "title": "Word embedding semantic direction extractor",
      "topics": [
        "get_direction"
      ]
    },
    {
      "page": "get_regions",
      "title": "Word embedding semantic region extractor",
      "topics": [
        "get_regions"
      ]
    },
    {
      "page": "get_stoplist",
      "title": "Gets stoplist from precompiled lists",
      "topics": [
        "get_stoplist"
      ]
    },
    {
      "page": "jfk_speech",
      "title": "Full Text of JFK's Rice Speech",
      "topics": [
        "jfk_speech"
      ]
    },
    {
      "page": "meta_shakespeare",
      "title": "Metadata for Shakespeare's First Folio",
      "topics": [
        "meta_shakespeare"
      ]
    },
    {
      "page": "perm_tester",
      "title": "Monte Carlo Permutation Tests for Model P-Values",
      "topics": [
        "perm_tester"
      ]
    },
    {
      "page": "plot.CoCA",
      "title": "Plot CoCA",
      "topics": [
        "plot.CoCA"
      ]
    },
    {
      "page": "print.CoCA",
      "title": "Prints CoCA class information",
      "topics": [
        "print.CoCA"
      ]
    },
    {
      "page": "rancor_builder",
      "title": "Build a Random Corpus",
      "topics": [
        "rancor_builder"
      ]
    },
    {
      "page": "rancors_builder",
      "title": "Build Multiple Random Corpora",
      "topics": [
        "rancors_builder"
      ]
    },
    {
      "page": "seq_builder",
      "title": "Represent Documents as Token-Integer Sequences",
      "topics": [
        "seq_builder"
      ]
    },
    {
      "page": "stoplists",
      "title": "A dataset of stoplists",
      "topics": [
        "stoplists"
      ]
    },
    {
      "page": "test_anchors",
      "title": "Evaluate anchor sets in defining semantic relations",
      "topics": [
        "test_anchors"
      ]
    },
    {
      "page": "tiny_gender_tagger",
      "title": "A very tiny \"gender\" tagger",
      "topics": [
        "tiny_gender_tagger"
      ]
    },
    {
      "page": "vocab_builder",
      "title": "A fast unigram vocabulary builder",
      "topics": [
        "vocab_builder"
      ]
    }
  ],
  "_pkglogo": "https://gitlab.com/culturalcartography/text2map/raw/HEAD/man/figures/logo.png",
  "_readme": "https://gitlab.com/culturalcartography/text2map/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "doParallel",
    "dplyr",
    "fastmatch",
    "foreach",
    "generics",
    "glue",
    "iterators",
    "kit",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "permute",
    "pillar",
    "pkgconfig",
    "R6",
    "rlang",
    "rsvd",
    "stringi",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_score": 4.107209969647869,
  "_indexed": true,
  "_nocasepkg": "text2map",
  "_universes": [
    "dustinstoltz",
    "gitlab-culturalcartography"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-06-03T19:15:27.000Z",
      "distro": "noble",
      "commit": "c62b1d13399eb247aaa9befce1240604e5ff4e80",
      "fileid": "4ef7599d426abee45dee7d2adaf85f8a9df95320eba2aacc655295ccef8bfc32",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dustinstoltz/actions/runs/26906968911"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-06-03T19:15:27.000Z",
      "distro": "noble",
      "commit": "c62b1d13399eb247aaa9befce1240604e5ff4e80",
      "fileid": "3440be6fb8c08bca53e468d77b84cdf3371509033eb874e32e1bf9791165bae2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dustinstoltz/actions/runs/26906968911"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-06-03T19:15:36.000Z",
      "commit": "c62b1d13399eb247aaa9befce1240604e5ff4e80",
      "fileid": "69f95ed528309358183f4491d1b6ae27cb9daa4ed17a3d17207863d7ff6a32e8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dustinstoltz/actions/runs/26906968911"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-06-03T19:14:40.000Z",
      "commit": "c62b1d13399eb247aaa9befce1240604e5ff4e80",
      "fileid": "125daed2b7aa011bbe52d5faa2d2fdbbc510d1e8eaa866b9d71ffea40e0bc36c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dustinstoltz/actions/runs/26906968911"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.0",
      "date": "2026-06-03T19:15:20.000Z",
      "commit": "c62b1d13399eb247aaa9befce1240604e5ff4e80",
      "fileid": "ea69b99955e784b22159c5e14241117f1c5a0a11e133a5bd0bcb03307c8d5060",
      "status": "success",
      "buildurl": "https://github.com/r-universe/dustinstoltz/actions/runs/26906968911"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-06-03T19:14:34.000Z",
      "commit": "c62b1d13399eb247aaa9befce1240604e5ff4e80",
      "fileid": "deee89251562aa5f6f4adc89dc58e837c4f7dbefa026b8dd4e8995e4a12e804f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dustinstoltz/actions/runs/26906968911"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-06-03T19:14:39.000Z",
      "commit": "c62b1d13399eb247aaa9befce1240604e5ff4e80",
      "fileid": "38a4eb35b556f34e78ff1421beec8a22b97c19545eb1e7f15537fa31a0e3b0b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dustinstoltz/actions/runs/26906968911"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-06-03T19:14:39.000Z",
      "commit": "c62b1d13399eb247aaa9befce1240604e5ff4e80",
      "fileid": "c803513c342960ba124391cc5904b62ad45d3f33f45d8dbb454a1cc13153a218",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dustinstoltz/actions/runs/26906968911"
    }
  ]
}