File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""
2- Canonical English function word lexicon .
2+ Internal lexicons used by stylometric metrics .
33
4- Source: NLTK cf. https://gist.github.com/sebleier/554280
5-
6- Notes:
7- - Lowercase only
4+ This package contains private lexicon data that are not part of the public API.
85"""
96
107from __future__ import annotations
118
9+ # Canonical English function word lexicon (lowercase only)
10+ # Source: NLTK cf. https://gist.github.com/sebleier/554280
1211FUNCTION_WORDS : frozenset [str ] = frozenset (
1312 {
1413 "i" ,
Original file line number Diff line number Diff line change 3030from dataclasses import dataclass
3131
3232from voice .stylometry ._defaults import PARAMETER_DEFAULTS
33- from voice .stylometry ._function_words import FUNCTION_WORDS
33+ from voice .stylometry ._lexicons import FUNCTION_WORDS
3434from voice .stylometry ._sequence_stats import (
3535 length_central_moment_from_units ,
3636 mattr_from_units ,
You can’t perform that action at this time.
0 commit comments