{"id":16200823,"url":"https://github.com/observedobserver/writingstyleanalysis","last_synced_at":"2025-04-07T18:16:10.286Z","repository":{"id":102838731,"uuid":"94999019","full_name":"ObservedObserver/WritingStyleAnalysis","owner":"ObservedObserver","description":"writing style analysis; relationship analysis","archived":false,"fork":false,"pushed_at":"2017-12-01T23:04:51.000Z","size":3359,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T20:14:31.784Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ObservedObserver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-21T11:57:15.000Z","updated_at":"2025-01-23T17:26:59.000Z","dependencies_parsed_at":"2023-03-13T15:14:23.243Z","dependency_job_id":null,"html_url":"https://github.com/ObservedObserver/WritingStyleAnalysis","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ObservedObserver%2FWritingStyleAnalysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ObservedObserver%2FWritingStyleAnalysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ObservedObserver%2FWritingStyleAnalysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ObservedObserver%2FWritingStyleAnalysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ObservedObserver","download_url":"https://codeload.github.com/ObservedObserver/WritingStyleAnalysis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247704573,"owners_count":20982298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-10T09:34:20.929Z","updated_at":"2025-04-07T18:16:10.252Z","avatar_url":"https://github.com/ObservedObserver.png","language":"Python","readme":"# Writing Style Analysis\n\nNovels.py provides a class Novel with many useful methods.(including the SNA in novels)\nAnalysis.py mainly provide method to calculate the td-idf of words in each novel.\n\nrun analysis.py with python3\n\ncheck war_peace_term_frequency.json \n\nor \n\nHere are several api in the code.\n\n```\nimport Novels\nbook = Novels.Novel(\"war_peace.txt\")\nbook.term_frequency()\nbook.time_density(\"Prince Valisi\")\nbook.grades(\"Prince Valisi\",\"Princess Anna\")\n\nimport Analysis\ntf-idf([\"war_peace.txt\",\"flatland.txt\",\"the_old_man_and_the_sea.txt\"])\n```\n\n![id](http://imglf2.nosdn.127.net/img/UnhEMnlSbXBDeGdWcnNZNm9lNjYzaVFlVXcvRmNMdHc3NHVJb0MwL1diRjZrb3RMMXdBbXlRPT0.png \"tf-idf of war and peace\")\n\n![id](http://imglf2.nosdn.127.net/img/UnhEMnlSbXBDeGdWcnNZNm9lNjYzajNVKzlVVlRSTDdZMlgvSVNnaDhpdW1jdXpsNmp0Wnd3PT0.png \"tf-idf of the old man and the sea\")\n\n\nBlog: http://ooerx.lofter.com/post/1ec94e0f_1041b25a\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobservedobserver%2Fwritingstyleanalysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobservedobserver%2Fwritingstyleanalysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobservedobserver%2Fwritingstyleanalysis/lists"}