benmarch/spel2js

View on GitHub

Showing 95 of 95 total issues

Function createNode has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createNode(nullSafeNavigation, methodName, position, args) {
    var node = SpelNode.create('method', position);

    node.getRaw = function () {
        return {
Severity: Major
Found in src/ast/MethodReference.js - About 2 hrs to fix

    Function createNode has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
    Open

    function createNode(nullSafeNavigation, propertyName, position) {
        var node = SpelNode.create('property', position);
    
        node.getRaw = function () {
            return propertyName;
    Severity: Minor
    Found in src/ast/PropertyReference.js - About 2 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    function createNode(value, position) {
        var node = SpelNode.create('boolean', position);
    
        node.getValue = function () {
            return value;
    Severity: Major
    Found in src/ast/BooleanLiteral.js and 1 other location - About 2 hrs to fix
    src/ast/NumberLiteral.js on lines 27..41

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 78.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    function createNode(value, position) {
        var node = SpelNode.create('number', position);
    
        node.getValue = function () {
            return value;
    Severity: Major
    Found in src/ast/NumberLiteral.js and 1 other location - About 2 hrs to fix
    src/ast/BooleanLiteral.js on lines 27..41

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 78.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Function createNode has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
    Open

     function createNode(position, dimensions, nodes) {
        var isArray = nodes !== undefined;
        var dimension;
        if (isArray) {
            dimension = dimensions.length && dimensions[0] && dimensions[0].getType() === 'number' ? dimensions[0].getValue() : null;
    Severity: Minor
    Found in src/ast/ConstructorReference.js - About 2 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

    function createNode(position, left, right) {
        var node = SpelNode.create('op-le', position, left, right);
    
        node.getValue = function (state) {
            return left.getValue(state) <= right.getValue(state);
    Severity: Major
    Found in src/ast/OpLE.js and 7 other locations - About 1 hr to fix
    src/ast/OpDivide.js on lines 29..37
    src/ast/OpEQ.js on lines 27..35
    src/ast/OpGE.js on lines 29..37
    src/ast/OpGT.js on lines 29..37
    src/ast/OpLT.js on lines 29..37
    src/ast/OpModulus.js on lines 29..37
    src/ast/OpNE.js on lines 27..35

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 74.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

    function createNode(position, left, right) {
        var node = SpelNode.create('op-modulus', position, left, right);
    
        node.getValue = function (state) {
            return left.getValue(state) % right.getValue(state);
    Severity: Major
    Found in src/ast/OpModulus.js and 7 other locations - About 1 hr to fix
    src/ast/OpDivide.js on lines 29..37
    src/ast/OpEQ.js on lines 27..35
    src/ast/OpGE.js on lines 29..37
    src/ast/OpGT.js on lines 29..37
    src/ast/OpLE.js on lines 29..37
    src/ast/OpLT.js on lines 29..37
    src/ast/OpNE.js on lines 27..35

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 74.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

    function createNode(position, left, right) {
        var node = SpelNode.create('op-divide', position, left, right);
    
        node.getValue = function (state) {
            return left.getValue(state) / right.getValue(state);
    Severity: Major
    Found in src/ast/OpDivide.js and 7 other locations - About 1 hr to fix
    src/ast/OpEQ.js on lines 27..35
    src/ast/OpGE.js on lines 29..37
    src/ast/OpGT.js on lines 29..37
    src/ast/OpLE.js on lines 29..37
    src/ast/OpLT.js on lines 29..37
    src/ast/OpModulus.js on lines 29..37
    src/ast/OpNE.js on lines 27..35

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 74.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

    function createNode(position, left, right) {
        var node = SpelNode.create('op-ge', position, left, right);
    
        node.getValue = function (state) {
            return left.getValue(state) >= right.getValue(state);
    Severity: Major
    Found in src/ast/OpGE.js and 7 other locations - About 1 hr to fix
    src/ast/OpDivide.js on lines 29..37
    src/ast/OpEQ.js on lines 27..35
    src/ast/OpGT.js on lines 29..37
    src/ast/OpLE.js on lines 29..37
    src/ast/OpLT.js on lines 29..37
    src/ast/OpModulus.js on lines 29..37
    src/ast/OpNE.js on lines 27..35

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 74.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

    function createNode(position, left, right) {
        var node = SpelNode.create('op-lt', position, left, right);
    
        node.getValue = function (state) {
            return left.getValue(state) < right.getValue(state);
    Severity: Major
    Found in src/ast/OpLT.js and 7 other locations - About 1 hr to fix
    src/ast/OpDivide.js on lines 29..37
    src/ast/OpEQ.js on lines 27..35
    src/ast/OpGE.js on lines 29..37
    src/ast/OpGT.js on lines 29..37
    src/ast/OpLE.js on lines 29..37
    src/ast/OpModulus.js on lines 29..37
    src/ast/OpNE.js on lines 27..35

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 74.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

    function createNode(position, left, right) {
        var node = SpelNode.create('op-ne', position, left, right);
    
        node.getValue = function (state) {
            return left.getValue(state) !== right.getValue(state);
    Severity: Major
    Found in src/ast/OpNE.js and 7 other locations - About 1 hr to fix
    src/ast/OpDivide.js on lines 29..37
    src/ast/OpEQ.js on lines 27..35
    src/ast/OpGE.js on lines 29..37
    src/ast/OpGT.js on lines 29..37
    src/ast/OpLE.js on lines 29..37
    src/ast/OpLT.js on lines 29..37
    src/ast/OpModulus.js on lines 29..37

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 74.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

    function createNode(position, left, right) {
        var node = SpelNode.create('op-gt', position, left, right);
    
        node.getValue = function (state) {
            return left.getValue(state) > right.getValue(state);
    Severity: Major
    Found in src/ast/OpGT.js and 7 other locations - About 1 hr to fix
    src/ast/OpDivide.js on lines 29..37
    src/ast/OpEQ.js on lines 27..35
    src/ast/OpGE.js on lines 29..37
    src/ast/OpLE.js on lines 29..37
    src/ast/OpLT.js on lines 29..37
    src/ast/OpModulus.js on lines 29..37
    src/ast/OpNE.js on lines 27..35

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 74.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

    function createNode(position, left, right) {
        var node = SpelNode.create('op-eq', position, left, right);
    
        node.getValue = function (state) {
            return left.getValue(state) === right.getValue(state);
    Severity: Major
    Found in src/ast/OpEQ.js and 7 other locations - About 1 hr to fix
    src/ast/OpDivide.js on lines 29..37
    src/ast/OpGE.js on lines 29..37
    src/ast/OpGT.js on lines 29..37
    src/ast/OpLE.js on lines 29..37
    src/ast/OpLT.js on lines 29..37
    src/ast/OpModulus.js on lines 29..37
    src/ast/OpNE.js on lines 27..35

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 74.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Function maybeEatInlineListOrMap has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function maybeEatInlineListOrMap() {
            var token = peekToken(),
                listElements = [];
    
            if (!peekTokenConsumeIfMatched(TokenKind.LCURLY, true)) {
    Severity: Minor
    Found in src/SpelExpressionParser.js - About 1 hr to fix

      Function getValue has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          node.getValue = function (state) {
              var context = state.activeContext.peek(),
                  compiledArgs = [],
                  method;
      
      
      Severity: Minor
      Found in src/ast/MethodReference.js - About 1 hr to fix

        Function createNode has 43 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function createNode(nullSafeNavigation, propertyName, position) {
            var node = SpelNode.create('property', position);
        
            node.getRaw = function () {
                return propertyName;
        Severity: Minor
        Found in src/ast/PropertyReference.js - About 1 hr to fix

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          function createNode(position, left, right) {
              var node = SpelNode.create('between', position, left, right);
          
              /**
               * Returns a boolean based on whether a value is in the range expressed. The first
          Severity: Major
          Found in src/ast/OpBetween.js and 1 other location - About 1 hr to fix
          src/ast/OpInstanceof.js on lines 28..47

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 69.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          function createNode(position, left, right) {
              var node = SpelNode.create('instanceof', position, left, right);
          
              /**
               * Compare the left operand to see it is an instance of the type specified as the
          Severity: Major
          Found in src/ast/OpInstanceof.js and 1 other location - About 1 hr to fix
          src/ast/OpBetween.js on lines 28..47

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 69.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

                              if (isTwoCharToken(TokenKind.NE)) {
                                  pushPairToken(TokenKind.NE);
                              }
                              else if (isTwoCharToken(TokenKind.PROJECT)) {
                                  pushPairToken(TokenKind.PROJECT);
          Severity: Major
          Found in src/Tokenizer.js and 1 other location - About 1 hr to fix
          src/Tokenizer.js on lines 182..190

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 68.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

                              else if (isTwoCharToken(TokenKind.ELVIS)) {
                                  pushPairToken(TokenKind.ELVIS);
                              }
                              else if (isTwoCharToken(TokenKind.SAFE_NAVI)) {
                                  pushPairToken(TokenKind.SAFE_NAVI);
          Severity: Major
          Found in src/Tokenizer.js and 1 other location - About 1 hr to fix
          src/Tokenizer.js on lines 142..150

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 68.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Severity
          Category
          Status
          Source
          Language