swarmauri_tool_lexicaldensity 0.7.0.dev12__tar.gz → 0.7.1.dev1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,64 @@
1
+ Metadata-Version: 2.3
2
+ Name: swarmauri_tool_lexicaldensity
3
+ Version: 0.7.1.dev1
4
+ Summary: Lexical Density Tool for Swarmauri.
5
+ License: Apache-2.0
6
+ Author: Jacob Stewart
7
+ Author-email: jacob@swarmauri.com
8
+ Requires-Python: >=3.10,<3.13
9
+ Classifier: License :: OSI Approved :: Apache Software License
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Requires-Dist: nltk (>=3.9.1)
14
+ Requires-Dist: swarmauri_base
15
+ Requires-Dist: swarmauri_core
16
+ Requires-Dist: swarmauri_standard
17
+ Requires-Dist: textstat (>=0.7.4)
18
+ Description-Content-Type: text/markdown
19
+
20
+
21
+ ![Swamauri Logo](https://res.cloudinary.com/dbjmpekvl/image/upload/v1730099724/Swarmauri-logo-lockup-2048x757_hww01w.png)
22
+
23
+ <p align="center">
24
+ <a href="https://pypi.org/project/swarmauri_tool_lexicaldensity/">
25
+ <img src="https://img.shields.io/pypi/dm/swarmauri_tool_lexicaldensity" alt="PyPI - Downloads"/></a>
26
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/community/swarmauri_tool_lexicaldensity/README.md">
27
+ <img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https://github.com/swarmauri/swarmauri-sdk/pkgs/community/swarmauri_tool_lexicaldensity/README.md&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false" alt="GitHub Hits"/></a>
28
+ <a href="https://pypi.org/project/swarmauri_tool_lexicaldensity/">
29
+ <img src="https://img.shields.io/pypi/pyversions/swarmauri_tool_lexicaldensity" alt="PyPI - Python Version"/></a>
30
+ <a href="https://pypi.org/project/swarmauri_tool_lexicaldensity/">
31
+ <img src="https://img.shields.io/pypi/l/swarmauri_tool_lexicaldensity" alt="PyPI - License"/></a>
32
+ <a href="https://pypi.org/project/swarmauri_tool_lexicaldensity/">
33
+ <img src="https://img.shields.io/pypi/v/swarmauri_tool_lexicaldensity?label=swarmauri_tool_lexicaldensity&color=green" alt="PyPI - swarmauri_tool_lexicaldensity"/></a>
34
+ </p>
35
+
36
+ ---
37
+
38
+ # Swarmauri Tool Lexical Density
39
+
40
+ A tool for calculating the lexical density of text, indicating the proportion of content words (nouns, verbs, adjectives, and adverbs) relative to the total number of words.
41
+
42
+ ## Installation
43
+
44
+ ```bash
45
+ pip install swarmauri_tool_lexicaldensity
46
+ ```
47
+
48
+ ## Usage
49
+ ```python
50
+ from swarmauri.tools.LexicalDensityTool import LexicalDensityTool
51
+
52
+ # Initialize the tool
53
+ tool = LexicalDensityTool()
54
+
55
+ # Calculate lexical density
56
+ text = "This is a test sentence."
57
+ result = tool(text)
58
+ print(result) # Returns: {'lexical_density': <score>}
59
+ ```
60
+
61
+ ## Want to help?
62
+
63
+ If you want to contribute to swarmauri-sdk, read up on our [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/contributing.md) that will help you get started.
64
+
@@ -0,0 +1,44 @@
1
+
2
+ ![Swamauri Logo](https://res.cloudinary.com/dbjmpekvl/image/upload/v1730099724/Swarmauri-logo-lockup-2048x757_hww01w.png)
3
+
4
+ <p align="center">
5
+ <a href="https://pypi.org/project/swarmauri_tool_lexicaldensity/">
6
+ <img src="https://img.shields.io/pypi/dm/swarmauri_tool_lexicaldensity" alt="PyPI - Downloads"/></a>
7
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/community/swarmauri_tool_lexicaldensity/README.md">
8
+ <img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https://github.com/swarmauri/swarmauri-sdk/pkgs/community/swarmauri_tool_lexicaldensity/README.md&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false" alt="GitHub Hits"/></a>
9
+ <a href="https://pypi.org/project/swarmauri_tool_lexicaldensity/">
10
+ <img src="https://img.shields.io/pypi/pyversions/swarmauri_tool_lexicaldensity" alt="PyPI - Python Version"/></a>
11
+ <a href="https://pypi.org/project/swarmauri_tool_lexicaldensity/">
12
+ <img src="https://img.shields.io/pypi/l/swarmauri_tool_lexicaldensity" alt="PyPI - License"/></a>
13
+ <a href="https://pypi.org/project/swarmauri_tool_lexicaldensity/">
14
+ <img src="https://img.shields.io/pypi/v/swarmauri_tool_lexicaldensity?label=swarmauri_tool_lexicaldensity&color=green" alt="PyPI - swarmauri_tool_lexicaldensity"/></a>
15
+ </p>
16
+
17
+ ---
18
+
19
+ # Swarmauri Tool Lexical Density
20
+
21
+ A tool for calculating the lexical density of text, indicating the proportion of content words (nouns, verbs, adjectives, and adverbs) relative to the total number of words.
22
+
23
+ ## Installation
24
+
25
+ ```bash
26
+ pip install swarmauri_tool_lexicaldensity
27
+ ```
28
+
29
+ ## Usage
30
+ ```python
31
+ from swarmauri.tools.LexicalDensityTool import LexicalDensityTool
32
+
33
+ # Initialize the tool
34
+ tool = LexicalDensityTool()
35
+
36
+ # Calculate lexical density
37
+ text = "This is a test sentence."
38
+ result = tool(text)
39
+ print(result) # Returns: {'lexical_density': <score>}
40
+ ```
41
+
42
+ ## Want to help?
43
+
44
+ If you want to contribute to swarmauri-sdk, read up on our [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/contributing.md) that will help you get started.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "swarmauri_tool_lexicaldensity"
3
- version = "0.7.0.dev12"
3
+ version = "0.7.1.dev1"
4
4
  description = "Lexical Density Tool for Swarmauri."
5
5
  license = "Apache-2.0"
6
6
  readme = "README.md"
@@ -45,7 +45,7 @@ log_cli_format = "%(asctime)s [%(levelname)s] %(message)s"
45
45
  log_cli_date_format = "%Y-%m-%d %H:%M:%S"
46
46
  asyncio_default_fixture_loop_scope = "function"
47
47
 
48
- [tool.project.entry-points."swarmauri.tools"]
48
+ [project.entry-points.'swarmauri.tools']
49
49
  LexicalDensityTool = "swarmauri_tool_lexicaldensity.LexicalDensityTool:LexicalDensityTool"
50
50
  [build-system]
51
51
  requires = ["poetry-core>=1.0.0"]
@@ -1,59 +0,0 @@
1
- Metadata-Version: 2.3
2
- Name: swarmauri_tool_lexicaldensity
3
- Version: 0.7.0.dev12
4
- Summary: Lexical Density Tool for Swarmauri.
5
- License: Apache-2.0
6
- Author: Jacob Stewart
7
- Author-email: jacob@swarmauri.com
8
- Requires-Python: >=3.10,<3.13
9
- Classifier: License :: OSI Approved :: Apache Software License
10
- Classifier: Programming Language :: Python :: 3.10
11
- Classifier: Programming Language :: Python :: 3.11
12
- Classifier: Programming Language :: Python :: 3.12
13
- Requires-Dist: nltk (>=3.9.1)
14
- Requires-Dist: swarmauri_base
15
- Requires-Dist: swarmauri_core
16
- Requires-Dist: swarmauri_standard
17
- Requires-Dist: textstat (>=0.7.4)
18
- Description-Content-Type: text/markdown
19
-
20
- ![Swarmauri Logo](https://res.cloudinary.com/dbjmpekvl/image/upload/v1730099724/Swarmauri-logo-lockup-2048x757_hww01w.png)
21
-
22
- <div align="center">
23
-
24
- ![PyPI - Downloads](https://img.shields.io/pypi/dm/swarmauri_tool_lexicaldensity)
25
- ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/swarmauri_tool_lexicaldensity)
26
- ![PyPI - License](https://img.shields.io/pypi/l/swarmauri_tool_lexicaldensity)
27
- ![PyPI - Version](https://img.shields.io/pypi/v/swarmauri_tool_lexicaldensity?label=swarmauri_tool_lexicaldensity&color=green)
28
-
29
- </div>
30
-
31
- ---
32
-
33
- # Lexical Density Tool
34
-
35
- A tool for calculating the lexical density of text, indicating the proportion of content words (nouns, verbs, adjectives, and adverbs) relative to the total number of words.
36
-
37
- ## Installation
38
-
39
- ```bash
40
- pip install swarmauri_tool_lexicaldensity
41
- ```
42
-
43
- ## Usage
44
- ```python
45
- from swarmauri.tools.LexicalDensityTool import LexicalDensityTool
46
-
47
- # Initialize the tool
48
- tool = LexicalDensityTool()
49
-
50
- # Calculate lexical density
51
- text = "This is a test sentence."
52
- result = tool(text)
53
- print(result) # Returns: {'lexical_density': <score>}
54
- ```
55
-
56
- ## Want to help?
57
-
58
- If you want to contribute to swarmauri-sdk, read up on our [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/contributing.md) that will help you get started.
59
-
@@ -1,39 +0,0 @@
1
- ![Swarmauri Logo](https://res.cloudinary.com/dbjmpekvl/image/upload/v1730099724/Swarmauri-logo-lockup-2048x757_hww01w.png)
2
-
3
- <div align="center">
4
-
5
- ![PyPI - Downloads](https://img.shields.io/pypi/dm/swarmauri_tool_lexicaldensity)
6
- ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/swarmauri_tool_lexicaldensity)
7
- ![PyPI - License](https://img.shields.io/pypi/l/swarmauri_tool_lexicaldensity)
8
- ![PyPI - Version](https://img.shields.io/pypi/v/swarmauri_tool_lexicaldensity?label=swarmauri_tool_lexicaldensity&color=green)
9
-
10
- </div>
11
-
12
- ---
13
-
14
- # Lexical Density Tool
15
-
16
- A tool for calculating the lexical density of text, indicating the proportion of content words (nouns, verbs, adjectives, and adverbs) relative to the total number of words.
17
-
18
- ## Installation
19
-
20
- ```bash
21
- pip install swarmauri_tool_lexicaldensity
22
- ```
23
-
24
- ## Usage
25
- ```python
26
- from swarmauri.tools.LexicalDensityTool import LexicalDensityTool
27
-
28
- # Initialize the tool
29
- tool = LexicalDensityTool()
30
-
31
- # Calculate lexical density
32
- text = "This is a test sentence."
33
- result = tool(text)
34
- print(result) # Returns: {'lexical_density': <score>}
35
- ```
36
-
37
- ## Want to help?
38
-
39
- If you want to contribute to swarmauri-sdk, read up on our [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/contributing.md) that will help you get started.