lang

package
v1.80.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package lang is the registry of language analyzers selected by code, for example riot.Config.WithLang("de").

Only "standard", "simple", "keyword", "web" and "en" are built in. A language package registers its code when imported, so a binary links only the languages it activates:

import _ "github.com/vcaesar/riot/analysis/lang/de"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Codes

func Codes() []string

Codes lists the registered codes, sorted.

func New

func New(code string) (*analysis.Analyzer, error)

New returns a new analyzer for code.

func Register

func Register(code string, newAnalyzer func() *analysis.Analyzer)

Register makes the analyzer constructor available under code; a later registration of the same code replaces it.

Types

This section is empty.

Directories

Path Synopsis
Package en implements an analyzer with reasonable defaults for processing English text.
Package en implements an analyzer with reasonable defaults for processing English text.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL