diff --git a/data/presets/fields/healthcare/speciality.json b/data/presets/fields/healthcare/speciality.json index d3a341af0..8a731b756 100644 --- a/data/presets/fields/healthcare/speciality.json +++ b/data/presets/fields/healthcare/speciality.json @@ -4,5 +4,5 @@ "reference": { "key": "healthcare" }, - "label": "Specialities" + "label": "Specialties" } diff --git a/data/presets/presets/amenity/kindergarten.json b/data/presets/presets/amenity/kindergarten.json index b90646f3b..5285eddf3 100644 --- a/data/presets/presets/amenity/kindergarten.json +++ b/data/presets/presets/amenity/kindergarten.json @@ -30,7 +30,7 @@ "point" ], "terms": [ - "kindergarten", + "kindergarden", "pre-school" ], "tags": { diff --git a/data/presets/presets/building/farm_auxiliary.json b/data/presets/presets/building/farm_auxiliary.json index a44d167a1..52ca52531 100644 --- a/data/presets/presets/building/farm_auxiliary.json +++ b/data/presets/presets/building/farm_auxiliary.json @@ -8,7 +8,7 @@ }, "terms": [ "agriculture", - "auxiliary", + "auxilary", "chicken coop", "farm auxiliary", "pigsty", diff --git a/data/presets/presets/building/kindergarten.json b/data/presets/presets/building/kindergarten.json index 4bfe7fb29..3bba5279f 100644 --- a/data/presets/presets/building/kindergarten.json +++ b/data/presets/presets/building/kindergarten.json @@ -4,7 +4,7 @@ "area" ], "terms": [ - "kindergarten", + "kindergarden", "pre-school" ], "tags": { diff --git a/data/presets/presets/shop/video.json b/data/presets/presets/shop/video.json index 64dae5a52..5283fc6a6 100644 --- a/data/presets/presets/shop/video.json +++ b/data/presets/presets/shop/video.json @@ -11,7 +11,7 @@ "terms": [ "DVD", "VHS", - "video cassette" + "video casette" ], "tags": { "shop": "video" diff --git a/data/presets/presets/tourism/artwork/graffiti.json b/data/presets/presets/tourism/artwork/graffiti.json index c50772b62..bee56d6b1 100644 --- a/data/presets/presets/tourism/artwork/graffiti.json +++ b/data/presets/presets/tourism/artwork/graffiti.json @@ -19,7 +19,7 @@ }, "terms": [ "Street Artwork", - "Guerrilla Artwork", + "Guerilla Artwork", "Graffiti Artwork" ], "name": "Graffiti" diff --git a/modules/validations/almost_junction.js b/modules/validations/almost_junction.js index 96a0b165a..866b0ed2e 100644 --- a/modules/validations/almost_junction.js +++ b/modules/validations/almost_junction.js @@ -170,11 +170,11 @@ export function validationAlmostJunction(context) { return false; } - let occurrences = 0; + let occurences = 0; for (const index in way.nodes) { if (way.nodes[index] === node.id) { - occurrences += 1; - if (occurrences > 1) { + occurences += 1; + if (occurences > 1) { return false; } } diff --git a/modules/validations/impossible_oneway.js b/modules/validations/impossible_oneway.js index 1f1bd634e..66443757a 100644 --- a/modules/validations/impossible_oneway.js +++ b/modules/validations/impossible_oneway.js @@ -46,11 +46,11 @@ export function validationImpossibleOneway() { } function nodeOccursMoreThanOnce(way, nodeID) { - var occurrences = 0; + var occurences = 0; for (var index in way.nodes) { if (way.nodes[index] === nodeID) { - occurrences += 1; - if (occurrences > 1) return true; + occurences += 1; + if (occurences > 1) return true; } } return false; diff --git a/test/spec/geo/geo.js b/test/spec/geo/geo.js index be9929b23..76c77ca09 100644 --- a/test/spec/geo/geo.js +++ b/test/spec/geo/geo.js @@ -104,7 +104,7 @@ describe('iD.geo - geography', function() { var b = [0, 0]; expect(iD.geoSphericalDistance(a, b)).to.eql(0); }); - it('a straight 1 degree line at the equator is approximately 111 km', function() { + it('a straight 1 degree line at the equator is aproximately 111 km', function() { var a = [0, 0]; var b = [1, 0]; expect(iD.geoSphericalDistance(a, b)).to.be.closeTo(110946, 10); diff --git a/test/spec/osm/lanes.js b/test/spec/osm/lanes.js index 4d7a69e94..214a25da4 100644 --- a/test/spec/osm/lanes.js +++ b/test/spec/osm/lanes.js @@ -419,7 +419,7 @@ describe('iD.Lanes', function() { expect(bothways.length).to.eql(0); }); - it('should have correct number of direction elements', function() { + it('should have corrent number of direction elements', function() { var lanes = iD.osmWay({tags: { highway: 'residential', lanes: 5, 'lanes:backward': 1, 'lanes:both_ways': 1 }}).lanes().lanes; var forward = lanes.filter(function(l) { return l.direction === 'forward'; @@ -1018,7 +1018,7 @@ describe('iD.Lanes', function() { highway: 'residential', lanes: 5, maxspeed: '30kmh', - 'maxspeed:lanes': '30|40|forty|40|40' + 'maxspeed:lanes': '30|40|fourty|40|40' } }).lanes().metadata.maxspeedLanes; expect(maxspeedLanes.unspecified).to.deep.equal([ @@ -1029,7 +1029,7 @@ describe('iD.Lanes', function() { highway: 'residential', lanes: 5, maxspeed: '30kmh', - 'maxspeed:lanes': '30|40|forty|40|random' + 'maxspeed:lanes': '30|40|fourty|40|random' } }).lanes().metadata.maxspeedLanes; @@ -1057,7 +1057,7 @@ describe('iD.Lanes', function() { highway: 'residential', lanes: 5, maxspeed: '30kmh', - 'maxspeed:lanes': '30|40|forty|40|40' + 'maxspeed:lanes': '30|40|fourty|40|40' } }).lanes().lanes; var maxspeedLanes = lanes.unspecified.map(function (l) { diff --git a/test/spec/services/taginfo.js b/test/spec/services/taginfo.js index 0207fa0bd..80d46cd7f 100644 --- a/test/spec/services/taginfo.js +++ b/test/spec/services/taginfo.js @@ -261,7 +261,7 @@ describe('iD.serviceTaginfo', function() { server.respondWith('GET', /\/key\/values/, [200, { 'Content-Type': 'application/json' }, '{"data":[{"value":"parking","description":"A place for parking cars", "fraction":0.2},' - + '{"value":"PArking","description":"A common misspelling", "fraction":0.2},' + + '{"value":"PArking","description":"A common mispelling", "fraction":0.2},' + '{"value":"parking;partying","description":"A place for parking cars *and* partying", "fraction":0.2},' + '{"value":"parking, partying","description":"A place for parking cars *and* partying", "fraction":0.2},' + '{"value":"*","description":"", "fraction":0.2}]}']