updated the dictionary to a larger one and added a notice of its copyright in the license file

This commit is contained in:
2025-11-06 22:17:36 -07:00
parent 038b3c7adb
commit 9bd8045e8c
3 changed files with 63340 additions and 6204 deletions
+19
View File
@@ -185,3 +185,22 @@ You may add additional accurate notices of copyright ownership.
```
This Source Code Form is “Incompatible With Secondary Licenses”, as defined by the Mozilla Public License, v. 2.0.
```
### Special Note:
The file `htmlcheck/en-us.dict` is derived from the American English word list supplied by the [SCOWL](http://wordlist.aspell.net/)
(Spell Checker Oriented Word Lists) project, which has a copyright notice as follows:
> Copyright 2000-2024 by Kevin Atkinson
>
> Permission to use, copy, modify, distribute and sell these word
> lists, the associated scripts, the output created from the scripts,
> and its documentation for any purpose is hereby granted without fee,
> provided that the above copyright notice appears in all copies and
> that both that copyright notice and this permission notice appear in
> supporting documentation. Kevin Atkinson makes no representations
> about the suitability of this array for any purpose. It is provided
> "as is" without express or implied warranty.
See also the [Copyright](https://raw.githubusercontent.com/en-wl/wordlist/refs/heads/v2/Copyright) file
in the SCOWL GitHub repository.
+63314 -6204
View File
File diff suppressed because it is too large Load Diff
+7
View File
@@ -97,6 +97,8 @@ func makeYearRange(a jet.Arguments) reflect.Value {
}
}
// immediateIf returns its 2nd argument if its 1st argument is true, and its 3rd argument if its 1st argument is false.
// (Like "a ? b : c" in C or Java.)
func immediateIf(a jet.Arguments) reflect.Value {
cond := a.Get(0).Convert(reflect.TypeFor[bool]()).Bool()
if cond {
@@ -119,6 +121,7 @@ func extractCommunityLogo(a jet.Arguments) reflect.Value {
return reflect.ValueOf(rc)
}
// displayActivity displays an activity string formatted to the user's preferences.
func displayActivity(a jet.Arguments) reflect.Value {
timeval := a.Get(0).Convert(reflect.TypeFor[*time.Time]()).Interface().(*time.Time)
ctxt := a.Get(1).Convert(reflect.TypeFor[AmContext]()).Interface().(AmContext)
@@ -129,6 +132,7 @@ func displayActivity(a jet.Arguments) reflect.Value {
return reflect.ValueOf(fmt.Sprintf("<<%v>>", err))
}
// displayMemberCount displays the current member count of a community.
func displayMemberCount(a jet.Arguments) reflect.Value {
showHidden := false
comm := a.Get(0).Convert(reflect.TypeFor[*database.Community]()).Interface().(*database.Community)
@@ -148,6 +152,7 @@ func displayMemberCount(a jet.Arguments) reflect.Value {
return reflect.ValueOf(count)
}
// displayFullName extracts a full name from a contact record.
func displayFullName(a jet.Arguments) reflect.Value {
ci := a.Get(0).Convert(reflect.TypeFor[*database.ContactInfo]()).Interface().(*database.ContactInfo)
var rc strings.Builder
@@ -174,6 +179,7 @@ func displayFullName(a jet.Arguments) reflect.Value {
return reflect.ValueOf(rc.String())
}
// displayExpandCat displays a category expanded into a hierarchy.
func displayExpandCat(a jet.Arguments) reflect.Value {
cat := a.Get(0).Convert(reflect.TypeFor[*database.Category]()).Interface().(*database.Category)
hier, _ := database.AmGetCategoryHierarchy(cat.CatId)
@@ -187,6 +193,7 @@ func displayExpandCat(a jet.Arguments) reflect.Value {
return reflect.ValueOf(rc.String())
}
// postRewrite rewrites "x-postlink:" and "x-userlink:" URLs in its text.
func postRewrite(a jet.Arguments) reflect.Value {
data := a.Get(0).Convert(reflect.TypeFor[string]()).String()
plIndex := strings.Index(data, htmlcheck.PostLinkURLPrefix)