{"id":13910578,"url":"https://github.com/jboynyc/textnets","last_synced_at":"2026-02-21T12:01:30.217Z","repository":{"id":40660032,"uuid":"114368834","full_name":"jboynyc/textnets","owner":"jboynyc","description":"Text analysis with networks.","archived":false,"fork":false,"pushed_at":"2026-01-16T13:57:58.000Z","size":2736,"stargazers_count":292,"open_issues_count":2,"forks_count":23,"subscribers_count":9,"default_branch":"trunk","last_synced_at":"2026-02-06T11:39:13.111Z","etag":null,"topics":["computational-social-science","network-analysis","nlp","sociology","text-analysis","text-as-data","visualization"],"latest_commit_sha":null,"homepage":"https://textnets.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jboynyc.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-12-15T12:34:15.000Z","updated_at":"2026-01-04T03:59:57.000Z","dependencies_parsed_at":"2024-05-07T15:29:22.412Z","dependency_job_id":"7ef25750-933e-4a5b-a0d4-18ae04972909","html_url":"https://github.com/jboynyc/textnets","commit_stats":{"total_commits":745,"total_committers":11,"mean_commits":67.72727272727273,"dds":"0.41744966442953024","last_synced_commit":"47cce1c9b93ee2b9d7ed9c9f465df5e4dfdfe95c"},"previous_names":[],"tags_count":48,"template":false,"template_full_name":null,"purl":"pkg:github/jboynyc/textnets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jboynyc%2Ftextnets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jboynyc%2Ftextnets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jboynyc%2Ftextnets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jboynyc%2Ftextnets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jboynyc","download_url":"https://codeload.github.com/jboynyc/textnets/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jboynyc%2Ftextnets/sbom","scorecard":{"id":510559,"data":{"date":"2025-08-11","repo":{"name":"github.com/jboynyc/textnets","commit":"567ff75a3916406d05e9ced6d73a03c3913da4f4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/pypi.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"SAST","score":10,"reason":"SAST tool detected: CodeQL","details":["Info: SAST configuration detected: CodeQL","Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/ci.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/ci.yml/trunk?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/ci.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/ci.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/ci.yml/trunk?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/ci.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/codeql-analysis.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/codeql-analysis.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/codeql-analysis.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/codeql-analysis.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/pypi.yml/trunk?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pypi.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/pypi.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/pypi.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/pypi.yml/trunk?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pypi.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/pypi.yml/trunk?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pypi.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/pypi.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/pypi.yml/trunk?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pypi.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/pypi.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/jboynyc/textnets/pypi.yml/trunk?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/pypi.yml:28","Info:   0 out of  13 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 third-party GitHubAction dependencies pinned","Info:   0 out of   1 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'trunk'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/pypi.yml:53"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-vqfr-h8mv-ghfj","Warn: Project is vulnerable to: GHSA-33p9-3p43-82vq","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: PYSEC-2025-49 / GHSA-5rjg-fvgr-3xxf","Warn: Project is vulnerable to: GHSA-7cx3-6m66-7c5m","Warn: Project is vulnerable to: GHSA-48p4-8xcf-vxj5","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T00:26:07.650Z","repository_id":40660032,"created_at":"2025-08-20T00:26:07.650Z","updated_at":"2025-08-20T00:26:07.650Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29439821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T07:24:13.446Z","status":"ssl_error","status_checked_at":"2026-02-14T07:23:58.969Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computational-social-science","network-analysis","nlp","sociology","text-analysis","text-as-data","visualization"],"created_at":"2024-08-07T00:01:35.316Z","updated_at":"2026-02-21T12:01:30.196Z","avatar_url":"https://github.com/jboynyc.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"=====================================\nTextnets: text analysis with networks\n=====================================\n\n.. image:: https://mybinder.org/badge_logo.svg\n   :target: https://mybinder.org/v2/gh/jboynyc/textnets-binder/trunk?filepath=Tutorial.ipynb\n   :alt: Launch on Binder\n\n.. image:: https://github.com/jboynyc/textnets/actions/workflows/ci.yml/badge.svg\n   :target: https://github.com/jboynyc/textnets/actions/workflows/ci.yml\n   :alt: CI Status\n\n.. image:: https://readthedocs.org/projects/textnets/badge/?version=stable\n   :target: https://textnets.readthedocs.io/en/stable/?badge=stable\n   :alt: Documentation Status\n\n.. image:: https://joss.theoj.org/papers/10.21105/joss.02594/status.svg\n   :target: https://doi.org/10.21105/joss.02594\n   :alt: Published in Journal of Open Source Software\n\n**textnets** represents collections of texts as networks of documents and\nwords. This provides novel possibilities for the visualization and analysis of\ntexts.\n\n.. figure:: https://textnets.readthedocs.io/en/dev/_static/impeachment-statements.svg\n   :alt: Bipartite network graph\n\n   Network of U.S. Senators and words used in their official statements\n   following the acquittal vote in the 2020 Senate impeachment trial (`source\n   \u003chttps://www.jboy.space/blog/enemies-foreign-and-partisan.html\u003e`_).\n\n**textnets** is free software under the terms of the GNU General Public License\nv3.\n\nThe ideas underlying **textnets** are presented in this paper:\n\n  Christopher A. Bail, \"`Combining natural language processing and network\n  analysis to examine how advocacy organizations stimulate conversation on social\n  media`__,\" *Proceedings of the National Academy of Sciences of the United States\n  of America* 113, no. 42 (2016), 11823–11828, doi:10.1073/pnas.1607151113.\n\n__ https://doi.org/10.1073/pnas.1607151113\n\nInitially begun as a Python implementation of `Chris Bail's textnets package\nfor R`_, **textnets** now comprises several unique features for term extraction\nand weighing, visualization, and analysis.\n\n.. _`Chris Bail's textnets package for R`: https://github.com/cbail/textnets/\n\nFeatures\n--------\n\n**textnets** builds on `spaCy`_, a state-of-the-art library for\nnatural-language processing, and `igraph`_ for network analysis. It uses the\n`Leiden algorithm`_ for community detection, which is able to perform community\ndetection on the bipartite (word–group) network.\n\n.. _`igraph`: http://igraph.org/python/\n.. _`Leiden algorithm`: https://doi.org/10.1038/s41598-019-41695-z\n.. _`spaCy`: https://spacy.io/\n\n**textnets** is installable using the ``pip`` and ``nix`` package managers. It\nrequires Python 3.9 or higher.\n\n**textnets** integrates seamlessly with Python's excellent `scientific stack`_.\nThat means that you can use **textnets** to analyze and visualize your data in\nJupyter notebooks!\n\n.. _`scientific stack`: https://scientific-python.org\n\nRead `the documentation \u003chttps://textnets.readthedocs.io\u003e`_ to learn more about\nthe package's features.\n\nCitation\n--------\n\nUsing **textnets** in a scholarly publication? Please cite this paper:\n\n.. code-block:: bibtex\n\n   @article{Boy2020,\n     author   = {John D. Boy},\n     title    = {textnets},\n     subtitle = {A {P}ython Package for Text Analysis with Networks},\n     journal  = {Journal of Open Source Software},\n     volume   = {5},\n     number   = {54},\n     pages    = {2594},\n     year     = {2020},\n     doi      = {10.21105/joss.02594},\n   }\n\nLearn More\n----------\n\n==================  =============================================\n**Documentation**   https://textnets.readthedocs.io/\n**Repository**      https://github.com/jboynyc/textnets\n**Issues \u0026 Ideas**  https://github.com/jboynyc/textnets/issues\n**PyPI**            https://pypi.org/project/textnets/\n**FOSDEM ’22**      https://fosdem.org/2022/schedule/event/open_research_textnets/\n**DOI**             `10.21105/joss.02594 \u003chttps://doi.org/10.21105/joss.02594\u003e`_\n**Archive**         `10.5281/zenodo.3866676 \u003chttps://doi.org/10.5281/zenodo.3866676\u003e`_\n==================  =============================================\n\n.. image:: https://textnets.readthedocs.io/en/dev/_static/textnets-logo.svg\n   :alt: textnets logo\n   :target: https://textnets.readthedocs.io\n   :align: center\n   :width: 140\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjboynyc%2Ftextnets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjboynyc%2Ftextnets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjboynyc%2Ftextnets/lists"}