Package: semanticfa
Title: Semantic Factor Analysis of Language Model Embeddings
Version: 0.1.0
Authors@R: c(
    person("Devon", "Yanitski", , "dyanitsk@ualberta.ca", role = c("aut", "cre"),
           comment = c(ORCID = "0009-0006-1568-3387")),
    person("Chris", "Westbury", role = "aut")
    )
Description: Performs exploratory factor analysis on language model embeddings
    of psychological scale items. Embeds item text with sentence transformers
    or other language models, transforms the embeddings into item-by-item
    similarity matrices, and extracts latent factor structure via standard
    exploratory factor analysis. Supports embedding-adapted parallel analysis,
    several similarity transforms (atomic reversed, SQuID centering,
    mean-centered Pearson), and fit diagnostics tailored to embedding matrices
    (TEFI, RMSR, CAF, McDonald's omega). The underlying methods are documented
    with full citations in the corresponding function help pages. Returns
    objects compatible with 'psych' and 'EFAtools' workflows.
License: GPL (>= 3)
URL: https://github.com/devon7y/semanticfa
BugReports: https://github.com/devon7y/semanticfa/issues
Depends: R (>= 4.1.0)
Imports: GPArotation, grDevices, graphics, psych, reticulate (>=
        1.41.0), Rtsne, stats, utils, uwot, withr
Suggests: digest, EFAtools, EGAnet, httr2, knitr, rmarkdown, testthat
        (>= 3.0.0)
VignetteBuilder: knitr
Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.2
NeedsCompilation: no
Packaged: 2026-06-07 08:31:29 UTC; devon7y
Author: Devon Yanitski [aut, cre] (ORCID:
    <https://orcid.org/0009-0006-1568-3387>),
  Chris Westbury [aut]
Maintainer: Devon Yanitski <dyanitsk@ualberta.ca>
Repository: CRAN
Date/Publication: 2026-06-15 13:00:02 UTC
Built: R 4.6.0; ; 2026-06-15 13:23:23 UTC; unix
