hunspell-reader
Version:
A library for reading Hunspell Dictionary Files
50 lines • 1.72 kB
JavaScript
/*
cspell:ignore KEEPCASE FORBIDDENWORD NEEDAFFIX
cspell:ignore COMPOUNDBEGIN COMPOUNDMIDDLE COMPOUNDEND COMPOUNDFORBIDFLAG
*/
export const affFlag = {
KEEPCASE: { isKeepCase: true },
WARN: { isWarning: true },
FORCEUCASE: { isForceUCase: true },
FORBIDDENWORD: { isForbiddenWord: true },
NOSUGGEST: { isNoSuggest: true },
NEEDAFFIX: { isNeedAffix: true },
COMPOUNDBEGIN: { canBeCompoundBegin: true },
COMPOUNDMIDDLE: { canBeCompoundMiddle: true },
COMPOUNDEND: { canBeCompoundEnd: true },
COMPOUNDFLAG: { isCompoundPermitted: true },
COMPOUNDPERMITFLAG: { isCompoundPermitted: true },
COMPOUNDFORBIDFLAG: { isCompoundForbidden: true },
ONLYINCOMPOUND: { isOnlyAllowedInCompound: true },
};
const _FlagToStringMap = {
isCompoundPermitted: 'C',
canBeCompoundBegin: 'B',
canBeCompoundMiddle: 'M',
canBeCompoundEnd: 'E',
isOnlyAllowedInCompound: 'O',
isWarning: 'W',
isKeepCase: 'K',
isForceUCase: 'U',
isForbiddenWord: 'F',
isNoSuggest: 'N',
isNeedAffix: 'A',
isCompoundForbidden: '-',
};
const _FlagToLongStringMap = {
isCompoundPermitted: 'CompoundPermitted',
canBeCompoundBegin: 'CompoundBegin',
canBeCompoundMiddle: 'CompoundMiddle',
canBeCompoundEnd: 'CompoundEnd',
isOnlyAllowedInCompound: 'OnlyInCompound',
isWarning: 'Warning',
isKeepCase: 'KeepCase',
isForceUCase: 'ForceUpperCase',
isForbiddenWord: 'Forbidden',
isNoSuggest: 'NoSuggest',
isNeedAffix: 'NeedAffix',
isCompoundForbidden: 'CompoundForbidden',
};
export const flagToStringMap = _FlagToStringMap;
export const flagToLongStringMap = _FlagToLongStringMap;
//# sourceMappingURL=affConstants.js.map