Skip to content

Commit 6a12bb3

Browse files
roed314claude
andcommitted
Use American spelling in comments, docstrings, and page text
LMFDB uses American spelling, but a number of British forms had accumulated: behaviour, centre/centred, colour, favourite, fibre, judgement, labelled/labelling, amongst, whilst, acknowledgements, and the -ise family (initialise, normalise, renormalise, factorise, recognise, prioritise, optimise, standardise, desynchronise). Two of these were also wrong on the facts. The CONTRIBUTORS.yaml header pointed at /acknowledgement, but the route is /acknowledgment (app.py). And abstract groups was the only section of roughly twenty-five offering "Source and acknowledgements"; every other one already said "acknowledgments". Prose only: no identifier is renamed here. Left alone deliberately are "grey" (a valid matplotlib color name, and the spelling the plotting code already uses), the "Catalogue of Lattices" (a proper name, and a knowl id), the Centre... institution names in workshops.html, maths.* URLs and e-mail addresses, the sympow readme quoted in symL, and the vendored snap.svg/markitup JavaScript. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent f5785bd commit 6a12bb3

38 files changed

Lines changed: 59 additions & 59 deletions

CONTRIBUTORS.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This is the list of contributors to LMFDB
2-
# They are listed on /acknowledgement and maybe elsewhere
2+
# They are listed on /acknowledgment and maybe elsewhere
33
# the 'name' field is mandatory, all others currently optional
44
# - affil: university or company affiliation
55
# - url: homepage

lmfdb/api2/templates/api2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h2 id="api2-requests">API2 requests</h2>
1818
<li><p><a class="uri">/api2/inventory/&lt;searcher&gt;</a> - Describe the list of possible fields that can be returned by a searcher</p></li>
1919
<li><p><a class="uri">/api2/data/&lt;searcher&gt;</a> - Perform a search using a given searcher. Query parameters taken from the searcher description are provided as an ampersand delimited query string to this endpoint. Non searching parameters are available and are all prepended by “_”</p></li>
2020
<li><p><a class="uri">/api2/pretty/&lt;other_path&gt;</a> - This takes a valid other API path and produces a human readable (just) HTML page from the data contained. The other path should be the part after “api2” in the URL</p></li>
21-
<li><p><a class="uri">/api2/singleton/&lt;path&gt;</a> - This is intended to provide a URL that allows canonical reference to a single element of the database. The format of the singletons is not standardised and should not in general be used for machine readable access</p></li>
21+
<li><p><a class="uri">/api2/singleton/&lt;path&gt;</a> - This is intended to provide a URL that allows canonical reference to a single element of the database. The format of the singletons is not standardized and should not in general be used for machine readable access</p></li>
2222
<li><p><a class="uri">/api2/livepg/&lt;database&gt;</a> - This is intended to replicate the behavior of the existing API. By specifying a database name and then using a standard search string (as per the /data/&lt;searcher&gt; endpoint) a search is performed on the raw database. This is not intended for normal access, but for debugging and testing purposes only.</p></li>
2323
</ul>
2424
<h3 id="api2-singletons">API2 singleton queries</h3>

lmfdb/bianchi_modular_forms/templates/bmf-field_dim_table.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
{% endif %}
4848
<p>{{info.report | safe}}
4949
{# we have to decide which option is preselected
50-
based on a judgement of what users will want to
50+
based on a judgment of what users will want to
5151
switch to, i.e. one of the other two options. For
5252
simplicity I have used the 3-cycle new -> all ->
5353
cusp -> new. #}

lmfdb/bianchi_modular_forms/web_BMF.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def __init__(self, dbdata, max_eigs=50):
115115
- dbdata: the data from the database
116116
117117
dbdata is expected to be a database entry from which the class
118-
is initialised.
118+
is initialized.
119119
120120
"""
121121
self.__dict__.update(dbdata)

lmfdb/characters/test_characters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def test_dirichletgalorbs(self):
131131
r'<td class="center">\(e\left(\frac{115}{714}\right)\)</td>')
132132
assert table_row in W.get_data(as_text=True)
133133

134-
# Tests for URL behaviour of characters
134+
# Tests for URL behavior of characters
135135

136136
W = self.tc.get('/Character/Dirichlet/5489/banana/100', follow_redirects=True)
137137
assert bool_string(True) in W.get_data(as_text=True)

lmfdb/ecnf/WebEllipticCurve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def EC_nf_plot(K, ainvs, base_field_gen_name):
238238
xmax = max([r[1] for r in R])
239239
ymin = min([r[2] for r in R])
240240
ymax = max([r[3] for r in R])
241-
cols = rainbow(n1) # Default choice of n colours
241+
cols = rainbow(n1) # Default choice of n colors
242242
# However, these tend to be too pale, so we preset them for small values of n
243243
if n1 == 1:
244244
cols = ["blue"]

lmfdb/ecnf/test_ecnf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_j(self):
5959
L = self.tc.get('/EllipticCurve/2.0.4.1/5525.5/b/9')
6060
assert '226834389543384' in L.get_data(as_text=True)
6161
assert '1490902050625' in L.get_data(as_text=True)
62-
L = self.tc.get('EllipticCurve/2.2.89.1/81.1/a/1') # Test factorisation
62+
L = self.tc.get('EllipticCurve/2.2.89.1/81.1/a/1') # Test factorization
6363
assert '8798344145175011328000' in L.get_data(as_text=True)
6464

6565
def test_download(self):

lmfdb/elliptic_curves/elliptic_curve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def elliptic_curve_search(info, query):
654654
info['galois_image'] = ','.join(modell_labels + elladic_labels)
655655
query['modell_images'] = { '$contains': modell_labels }
656656

657-
# The button which used to be labelled Optimal only no/yes"
657+
# The button which used to be labeled Optimal only no/yes"
658658
# (default: no) has been renamed "Curves per isogeny class
659659
# all/one" (default: all). When this option is "one" we only list
660660
# one curve in each class, currently choosing the curve with

lmfdb/elliptic_curves/isog_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def make_class(self):
133133
from sage.matrix.all import Matrix
134134
M = classdata['isogeny_matrix']
135135

136-
# permute rows/cols to match labelling: the rows/cols in the
136+
# permute rows/cols to match labeling: the rows/cols in the
137137
# ec_classdata table are with respect to LMFDB ordering.
138138
if self.label_type == 'Cremona':
139139
def perm(i): return next(c for c in self.curves if c['Cnumber'] == i+1)['lmfdb_number']-1

lmfdb/elliptic_curves/templates/congruent_number_data.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ <h3>Distribution of &#1064;</h3>
255255
Over half the curves ($574,290$) have trivial &#1064;. The largest value seen is $7396 = 86^2$, for $n=719057$.
256256
</p>
257257

258-
<h2>Credit and acknowledgements</h2>
258+
<h2>Credit and acknowledgments</h2>
259259

260260
<p>
261261
The data files were created by Randall L. Rathbun on February 14, 2013

0 commit comments

Comments
 (0)