Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glossary copy edit #25468

Closed
wants to merge 1 commit into from
Closed

Conversation

jbogarthyde
Copy link
Contributor

@jbogarthyde jbogarthyde commented Aug 13, 2018

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[x] Documentation content changes
[ ] angular.io application / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@jbogarthyde jbogarthyde added comp: docs target: patch This PR is targeted for the next patch release labels Aug 13, 2018
@mary-poppins
Copy link

You can preview 636f214 at https://pr25468-636f214.ngbuilds.io/.

@jbogarthyde
Copy link
Contributor Author

@jenniferfell All green now except approvals

@mary-poppins
Copy link

You can preview 5a4b921 at https://pr25468-5a4b921.ngbuilds.io/.

@mary-poppins
Copy link

You can preview e96757b at https://pr25468-e96757b.ngbuilds.io/.

@jbogarthyde
Copy link
Contributor Author

@jenniferfell All green now except approvals

Copy link
Contributor

@jenniferfell jenniferfell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some things to fix before releasing:

  • Line breaks in some unexpected places (not paragraph breaks)
  • Inconsistent vert spacing in lists
  • A few caps or other copy edit things

Optional:

  • Some places where a comma was included out of habit but is not correct or where a comma is standing in for missing words.
  • Some places where a "which" or "that" clause could be more clear.
    Optional because I'm not sure if we can be more clear in this copy edit pass. Might need to put on backlog to rewrite some definitions.



A function that modifies the immediately following class or property definition.
Decorators (also called annotations) are an experimental (stage 2), JavaScript language [feature](https://github.com/wycats/javascript-decorators).
A function that modifies a class or property definition.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason, there is a line break (but not a paragraph break) at the end of this sentence in the output.

A function that modifies the immediately following class or property definition.
Decorators (also called annotations) are an experimental (stage 2), JavaScript language [feature](https://github.com/wycats/javascript-decorators).
A function that modifies a class or property definition.
Decorators (also called *annotations*) are an experimental (stage 2), JavaScript language [feature](https://github.com/wycats/javascript-decorators).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove , after (stage 2)


## Domain-specific language (DSL)
## domain-specific language (DSL)

A special-purpose library or API; see [Domain-specific language](https://en.wikipedia.org/wiki/Domain-specific_language).

Angular extends TypeScript with domain-specific languages for a number of domains relevant to Angular apps, defined in ngModules such as [animations](guide/animations), [forms](guide/forms), and [routing and navigation](guide/router).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capitalize NgModules


Both a [service](guide/glossary#service) and a [component](guide/glossary#component) that depends on that service must be marked as injectable. Other items, such as constant values, can be injectable.
Both [services](guide/glossary#service) and [components](guide/glossary#component) that depends on those service must be marked as injectables. Other items, such as constant values, can be injectable.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both services and components that depend ...

## Directive

A class with the `@Directive` [decorator](guide/glossary#decorator) that can modify the structure of the DOM, or modify attributes in the DOM and component data model.
A class with the `@Directive()` [decorator](guide/glossary#decorator) that can modify the structure of the DOM, or modify attributes in the DOM and component data model.

A directive class is usually associated with an HTML element or attribute, and that element or attribute is often referred to as the directive itself.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason, in the output there is a line break (but not a paragraph break) at the end of the first sentence.


In Angular, a [project](guide/glossary#project) that provides functionality that can be included in other Angular apps. A library is not a complete Angular app, and it cannot run independently.
In Angular, a [project](guide/glossary#project) that provides functionality that can be included in other Angular apps.
A library isn't a complete Angular app, and can't run independently.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra comma:

  • A library isn't a complete Angular app and can't run independently.

## Module
{@a module}

## module

In general, a module collects a block of code dedicated to a single purpose. Angular uses standard JavaScript modules, and also defines an Angular module, `NgModule`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Global. The existing docs have a lot of sentences that technically have a compound predicate with a comma. While the comma is allowed in some cases for clarity, a compound predicate typically should not have a comma. This extra comma is often a clue that the sentence has other problems. Either there is simply an extra comma out of (bad) habit, or the sentence would benefit from more words or smaller bites.

Incorrect: I ate pizza, and also ate ice cream.
Correct: I ate pizza and also ate ice cream.
Correct: I ate pizza, and I also ate ice cream.
Better: I ate pizza and ice cream.

Current: Angular uses standard JavaScript modules, and also defines an Angular module, NgModule.

1 Drop the comma: Angular uses standard JavaScript modules and also defines an Angular module, NgModule.

2 Compound sentence: Angular uses standard JavaScript modules, and it also defines an Angular module, NgModule.

3 Two sentences: Angular uses standard JavaScript modules. It also defines an Angular-specific module, NgModule.

I think 1 gets the job done here.


In general, a module collects a block of code dedicated to a single purpose. Angular uses standard JavaScript modules, and also defines an Angular module, `NgModule`.

In JavaScript (ECMAScript), each file is a module and all objects defined in the file belong to that module. Objects can exported, making them public, and public objects can be imported for use by other modules.

Angular ships as a collection of JavaScript modules, or libraries. Each Angular library name begins with the `@angular` prefix. Install them with the npm package manager and import parts of them with JavaScript `import` declarations.
Angular ships as a collection of JavaScript modules, or libraries. Each Angular library name begins with the `@angular` prefix. Install them with the `npm` package manager and import parts of them with JavaScript `import` declarations.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"them" doesn't have a direct referent
Recommend: Install Angular libraries with the...


## Bootstrap
## bootstrap

A way to initialize and launch an app or system.

In Angular, an app's root NgModule (`AppModule`) has a `bootstrap` property that identifies the app's top-level [components](guide/glossary#component).
During the bootstrap process, Angular creates and inserts these components into the `index.html` host web page.
You can bootstrap multiple apps in the same `index.html`, each app with its own components.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like a word is missing in this sentence


In general, a module collects a block of code dedicated to a single purpose. Angular uses standard JavaScript modules, and also defines an Angular module, `NgModule`.

In JavaScript (ECMAScript), each file is a module and all objects defined in the file belong to that module. Objects can exported, making them public, and public objects can be imported for use by other modules.

Angular ships as a collection of JavaScript modules, or libraries. Each Angular library name begins with the `@angular` prefix. Install them with the npm package manager and import parts of them with JavaScript `import` declarations.
Angular ships as a collection of JavaScript modules, or libraries. Each Angular library name begins with the `@angular` prefix. Install them with the `npm` package manager and import parts of them with JavaScript `import` declarations.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another comma standing in for words. Grammatically fine as is, but if we can be more clear without too much effort, that would be great.

  • Angular ships as a collection of JavaScript modules (also called libraries).
  • Angular ships as a collection of JavaScript modules or libraries. [diff things]

@jenniferfell
Copy link
Contributor

P.S. Please squash commits. Thanks!

@jbogarthyde jbogarthyde force-pushed the jb-glossary-edit branch 4 times, most recently from 75def40 to bc20c68 Compare August 17, 2018 15:24
@mary-poppins
Copy link

You can preview bc20c68 at https://pr25468-bc20c68.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 580b5bc at https://pr25468-580b5bc.ngbuilds.io/.

@mary-poppins
Copy link

You can preview f1b6f55 at https://pr25468-f1b6f55.ngbuilds.io/.

@jbogarthyde jbogarthyde added the action: merge The PR is ready for merge by the caretaker label Aug 17, 2018
@jasonaden jasonaden closed this in d2be3d5 Aug 17, 2018
jasonaden pushed a commit that referenced this pull request Aug 17, 2018
@jbogarthyde jbogarthyde deleted the jb-glossary-edit branch August 20, 2018 16:51
FrederikSchlemmer pushed a commit to FrederikSchlemmer/angular that referenced this pull request Jan 3, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants