Toggle Menu
Prev Up Next

# `langchain_text_splitters.base`.Language

class langchain_text_splitters.base.Language(value)

  Enum of the programming languages.

  CPP = 'cpp'
  GO = 'go'
  JAVA = 'java'
  KOTLIN = 'kotlin'
  JS = 'js'
  TS = 'ts'
  PHP = 'php'
  PROTO = 'proto'
  PYTHON = 'python'
  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'

# Examples using Language

- Code for: class MyClass:

- Full list of supported languages

- Set env var OPENAI_API_KEY or load from a .env file