Skip to main content

noun-verb is a package that reframes self-concept from fixed labels (nouns) to dynamic actions (verbs).

Project description

noun-verb

PyPI version License: MIT Downloads LinkedIn

A Python package that helps users reframe their self-perception from static identity labels (nouns) to dynamic actions and processes (verbs). It uses structured LLM interactions to process user-provided text reflections and returns a transformed perspective that emphasizes growth, change, and agency.

Installation

pip install noun_verb

Usage

Import and use the noun_verb function to process user input:

from noun_verb import noun_verb

user_input = "I am a shy person."
result = noun_verb(user_input)
print(result)

Parameters

  • user_input (str): The user input text to process.
  • llm (Optional[BaseChatModel]): A LangChain LLM instance. If not provided, the default ChatLLM7 is used.
  • api_key (Optional[str]): API key for LLM7. If not provided, the environment variable LLM7_API_KEY is used.

Using a Custom LLM

You can use any LangChain-compatible LLM by passing it to the llm parameter:

OpenAI Example

from langchain_openai import ChatOpenAI
from noun_verb import noun_verb

llm = ChatOpenAI()
response = noun_verb(user_input, llm=llm)

Anthropic Example

from langchain_anthropic import ChatAnthropic
from noun_verb import noun_verb

llm = ChatAnthropic()
response = noun_verb(user_input, llm=llm)

Google Generative AI Example

from langchain_google_genai import ChatGoogleGenerativeAI
from noun_verb import noun_verb

llm = ChatGoogleGenerativeAI()
response = noun_verb(user_input, llm=llm)

Using a Custom API Key for LLM7

To use your own LLM7 API key:

from noun_verb import noun_verb

response = noun_verb(user_input, api_key="your_api_key_here")

Or set the environment variable:

export LLM7_API_KEY="your_api_key_here"

You can get a free API key by registering at https://token.llm7.io/.

Default LLM

By default, the package uses ChatLLM7 from the langchain_llm7 package (available at PyPI). The free tier rate limits are sufficient for most use cases.

Contributing

If you encounter any issues or have suggestions, please open an issue on GitHub.

Author

Eugene Evstafev
Email: hi@euegne.plus
GitHub: chigwell

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

noun_verb-2025.12.21234620.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

noun_verb-2025.12.21234620-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file noun_verb-2025.12.21234620.tar.gz.

File metadata

  • Download URL: noun_verb-2025.12.21234620.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for noun_verb-2025.12.21234620.tar.gz
Algorithm Hash digest
SHA256 378c64961606d80a0e43c7add831e80c5a3a4b255ee1a32b926687003057ef49
MD5 50a8adb4223103f3706b1eed683e2a18
BLAKE2b-256 0eb67b61d085857ff918fbf9184c7228cd603f9eafdcbc999b2e469b437b86d7

See more details on using hashes here.

File details

Details for the file noun_verb-2025.12.21234620-py3-none-any.whl.

File metadata

File hashes

Hashes for noun_verb-2025.12.21234620-py3-none-any.whl
Algorithm Hash digest
SHA256 037f1e8afe17813b5c6d3790827162ff169de820c4eec9d3e26170731c7d374c
MD5 c93cecacd1fdd665aae5b3ec712812e4
BLAKE2b-256 37427a175c0999197bb459a402c6b0deb4aac6226ed7d7bd7ef67910abaf1fbc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page