Language Class — langchain Architecture
Architecture documentation for the Language class in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 09fc1944_2555_2bcb_be9e_036c412598ba["Language"] 3a8d6f7e_811d_79c5_19bf_f9486dc287bd["base.py"] 09fc1944_2555_2bcb_be9e_036c412598ba -->|defined in| 3a8d6f7e_811d_79c5_19bf_f9486dc287bd
Relationship Graph
Source Code
libs/text-splitters/langchain_text_splitters/base.py lines 372–402
class Language(str, Enum):
"""Enum of the programming languages."""
CPP = "cpp"
GO = "go"
JAVA = "java"
KOTLIN = "kotlin"
JS = "js"
TS = "ts"
PHP = "php"
PROTO = "proto"
PYTHON = "python"
R = "r"
RST = "rst"
RUBY = "ruby"
RUST = "rust"
SCALA = "scala"
SWIFT = "swift"
MARKDOWN = "markdown"
LATEX = "latex"
HTML = "html"
SOL = "sol"
CSHARP = "csharp"
COBOL = "cobol"
C = "c"
LUA = "lua"
PERL = "perl"
HASKELL = "haskell"
ELIXIR = "elixir"
POWERSHELL = "powershell"
VISUALBASIC6 = "visualbasic6"
Source
Frequently Asked Questions
What is the Language class?
Language is a class in the langchain codebase, defined in libs/text-splitters/langchain_text_splitters/base.py.
Where is Language defined?
Language is defined in libs/text-splitters/langchain_text_splitters/base.py at line 372.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free